Fix codestyle

This commit is contained in:
taldy 2017-04-06 12:18:27 +03:00
parent c22b0b790b
commit 1ba4adca70
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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