Fix syntax error

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

View File

@ -84,7 +84,7 @@ export function promisify (fn, context) {
} else { } else {
promise = fn(context) promise = fn(context)
} }
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