From efb0d4dc03ffe9040debaf8ef0d5ad009d8b4535 Mon Sep 17 00:00:00 2001 From: jpellizzari Date: Tue, 14 Feb 2017 10:52:51 -0800 Subject: [PATCH] Revert "Fix for contrast mode cache delete" This reverts commit 80465c212f93ea9fee329785dc929a888fa2a821. --- client/app/scripts/reducers/root.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/client/app/scripts/reducers/root.js b/client/app/scripts/reducers/root.js index c0664259e..5913dfcca 100644 --- a/client/app/scripts/reducers/root.js +++ b/client/app/scripts/reducers/root.js @@ -731,11 +731,9 @@ export function rootReducer(state = initialState, action) { // Bust the webpack require cache to for a re-download of the stylesheets modules.forEach((i) => { const children = require.cache[i] ? require.cache[i].children : []; - if (children) { - children.forEach((c) => { - delete require.cache[c]; - }); - } + children.forEach((c) => { + delete require.cache[c]; + }); delete require.cache[i]; });