From 26f2588b2f25b522acb44a5fa6d35906882e6331 Mon Sep 17 00:00:00 2001 From: Ricardo Gobbo de Souza Date: Tue, 27 Nov 2018 20:56:19 -0200 Subject: [PATCH] simplify return --- packages/server/src/listener.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/server/src/listener.js b/packages/server/src/listener.js index 664de11b1c..695fd717be 100644 --- a/packages/server/src/listener.js +++ b/packages/server/src/listener.js @@ -78,9 +78,7 @@ export default class Listener { this._server.close() this.port = await getPort() - await this.serverListen() - - return + return await this.serverListen() } consola.error(e)