mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 05:04:57 +08:00
redundant code is redundant
This commit is contained in:
parent
ef3df3e3fa
commit
65eacff3d3
@ -207,10 +207,8 @@ 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 false;
|
||||
} else {
|
||||
console.warn(`Unknown features config for ${featureId}: ${sdkConfigValue}`);
|
||||
|
Loading…
Reference in New Issue
Block a user