diff --git a/lib/app/store.js b/lib/app/store.js index a030990d50..acf94f07ac 100644 --- a/lib/app/store.js +++ b/lib/app/store.js @@ -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) } diff --git a/lib/render.js b/lib/render.js index fb924166f9..eec45eb82a 100644 --- a/lib/render.js +++ b/lib/render.js @@ -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