From ffbaf0ee110a92c322ac7019119fe4ec00fc987b Mon Sep 17 00:00:00 2001 From: vlazh Date: Tue, 26 Oct 2021 11:06:16 +0600 Subject: [PATCH] Wrap NODE_ENV conditional code in block --- src/helpers/focusManager.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/helpers/focusManager.js b/src/helpers/focusManager.js index acc66c20..b7e4a3fb 100644 --- a/src/helpers/focusManager.js +++ b/src/helpers/focusManager.js @@ -12,13 +12,14 @@ export function resetState() { /* istanbul ignore next */ export function log() { - if (process.env.NODE_ENV === "production") return; - console.log("focusManager ----------"); - focusLaterElements.forEach(f => { - const check = f || {}; - console.log(check.nodeName, check.className, check.id); - }); - console.log("end focusManager ----------"); + if (process.env.NODE_ENV !== "production") { + console.log("focusManager ----------"); + focusLaterElements.forEach(f => { + const check = f || {}; + console.log(check.nodeName, check.className, check.id); + }); + console.log("end focusManager ----------"); + } } /* eslint-enable no-console */