mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
Fix eslint + istanbul
This commit is contained in:
parent
f6a02a1ac6
commit
d576dad069
@ -13,14 +13,13 @@ function getModule (filename) {
|
||||
}
|
||||
|
||||
function getModuleNamespace (storeData, namePath) {
|
||||
if (namePath.length == 1) return storeData.modules
|
||||
|
||||
if (namePath.length === 1) {
|
||||
return storeData.modules
|
||||
}
|
||||
let namespace = namePath.shift()
|
||||
|
||||
storeData.modules[namespace] = storeData.modules[namespace] || {}
|
||||
storeData.modules[namespace].namespaced = true
|
||||
storeData.modules[namespace].modules = storeData.modules[namespace].modules || {}
|
||||
|
||||
return getModuleNamespace(storeData.modules[namespace], namePath)
|
||||
}
|
||||
|
||||
|
@ -71,6 +71,7 @@ export function render (req, res) {
|
||||
return html
|
||||
})
|
||||
.catch((err) => {
|
||||
/* istanbul ignore if */
|
||||
if (context.redirected) {
|
||||
console.error(err) // eslint-disable-line no-console
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user