mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-03 19:07:15 +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