From 65eacff3d3fbe3b30c9cba8812af5fbb7193132f Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 12 Oct 2017 17:28:53 +0100 Subject: [PATCH] redundant code is redundant --- src/UserSettingsStore.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/UserSettingsStore.js b/src/UserSettingsStore.js index 0e9d58b270..050e28e5b7 100644 --- a/src/UserSettingsStore.js +++ b/src/UserSettingsStore.js @@ -207,9 +207,7 @@ export default { // Make it explicit that guests get the defaults (although they shouldn't // have been able to ever toggle the flags anyway) const userValue = localStorage.getItem(`mx_labs_feature_${featureId}`); - if (userValue !== null) { - return userValue === 'true'; - } + return userValue === 'true'; } return false; } else {