From d576dad069b985711a0eca8d0c10c852c0cacec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Tue, 28 Mar 2017 16:28:24 +0200 Subject: [PATCH] Fix eslint + istanbul --- lib/app/store.js | 7 +++---- lib/render.js | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) 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