Fix syntax error

This commit is contained in:
Sébastien Chopin 2017-04-06 11:14:43 +02:00 committed by GitHub
parent 63f4f74497
commit 7fb45da8d0

View File

@ -52,7 +52,7 @@ export function promisifyRoute (fn) {
}) })
} }
let promise = 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) promise = Promise.resolve(promise)
} }
return promise return promise