From 7fb45da8d032c75ca610a20f6326ce4f18f00254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Thu, 6 Apr 2017 11:14:43 +0200 Subject: [PATCH] Fix syntax error --- lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.js b/lib/utils.js index 185dc414f4..edea410fdb 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -52,7 +52,7 @@ export function promisifyRoute (fn) { }) } let promise = fn() - if (!promise || (!(promise instanceof Promise) && (typeof promise.then !== 'function'))) + if (!promise || (!(promise instanceof Promise) && (typeof promise.then !== 'function'))) { promise = Promise.resolve(promise) } return promise