mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
Fix syntax error
This commit is contained in:
parent
c22b0b790b
commit
63f4f74497
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user