mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-16 10:08:47 +02:00
Remove unnecessary checks.
This commit is contained in:
parent
aa8d8f0aef
commit
30b5a28f4e
1 changed files with 4 additions and 4 deletions
|
@ -62,19 +62,19 @@ var SETTINGS_KEY_BETA = '_betaDefaultScriptsIsChecked';
|
||||||
var previousSetting = Settings.getValue(SETTINGS_KEY, false);
|
var previousSetting = Settings.getValue(SETTINGS_KEY, false);
|
||||||
var previousSettingBeta = Settings.getValue(SETTINGS_KEY_BETA, false);
|
var previousSettingBeta = Settings.getValue(SETTINGS_KEY_BETA, false);
|
||||||
|
|
||||||
if (previousSetting === '' || previousSetting === false || previousSetting === 'false') {
|
if (previousSetting === '' || previousSetting === 'false') {
|
||||||
previousSetting = false;
|
previousSetting = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (previousSetting === true || previousSetting === 'true') {
|
if (previousSetting === 'true') {
|
||||||
previousSetting = true;
|
previousSetting = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (previousSettingBeta === '' || previousSettingBeta === false || previousSettingBeta === 'false') {
|
if (previousSettingBeta === '' || previousSettingBeta === 'false') {
|
||||||
previousSettingBeta = false;
|
previousSettingBeta = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (previousSettingBeta === true || previousSettingBeta === 'true') {
|
if (previousSettingBeta === 'true') {
|
||||||
previousSettingBeta = true;
|
previousSettingBeta = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue