mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
Fix syntax error
This commit is contained in:
parent
63f4f74497
commit
7fb45da8d0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user