From b5cc33df0c07d7ba91ba90b7feabaac5654c0d05 Mon Sep 17 00:00:00 2001 From: "M. George Hansen" Date: Sun, 28 Feb 2021 08:22:44 -0800 Subject: [PATCH] fix: eslint warning in dev runner --- src/cli/commands/dev.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/commands/dev.ts b/src/cli/commands/dev.ts index 63b9374..77497ad 100644 --- a/src/cli/commands/dev.ts +++ b/src/cli/commands/dev.ts @@ -166,7 +166,7 @@ const startHttpServer = async (publicDir: string): Promise => { }); res.end(contents); }); - const listen = async (port?: number): Promise => + const listen = async (port?: number): Promise => new Promise((resolve, reject) => { httpServer .once("error", (error) => reject(error))