redundant code is redundant

pull/21833/head
David Baker 2017-10-12 17:28:53 +01:00
parent ef3df3e3fa
commit 65eacff3d3
1 changed files with 1 additions and 3 deletions

View File

@ -207,10 +207,8 @@ export default {
// Make it explicit that guests get the defaults (although they shouldn't // Make it explicit that guests get the defaults (although they shouldn't
// have been able to ever toggle the flags anyway) // have been able to ever toggle the flags anyway)
const userValue = localStorage.getItem(`mx_labs_feature_${featureId}`); const userValue = localStorage.getItem(`mx_labs_feature_${featureId}`);
if (userValue !== null) {
return userValue === 'true'; return userValue === 'true';
} }
}
return false; return false;
} else { } else {
console.warn(`Unknown features config for ${featureId}: ${sdkConfigValue}`); console.warn(`Unknown features config for ${featureId}: ${sdkConfigValue}`);