mirror of
https://github.com/lubosz/overte.git
synced 2025-04-08 01:22:08 +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 previousSettingBeta = Settings.getValue(SETTINGS_KEY_BETA, false);
|
||||
|
||||
if (previousSetting === '' || previousSetting === false || previousSetting === 'false') {
|
||||
if (previousSetting === '' || previousSetting === 'false') {
|
||||
previousSetting = false;
|
||||
}
|
||||
|
||||
if (previousSetting === true || previousSetting === 'true') {
|
||||
if (previousSetting === 'true') {
|
||||
previousSetting = true;
|
||||
}
|
||||
|
||||
if (previousSettingBeta === '' || previousSettingBeta === false || previousSettingBeta === 'false') {
|
||||
if (previousSettingBeta === '' || previousSettingBeta === 'false') {
|
||||
previousSettingBeta = false;
|
||||
}
|
||||
|
||||
if (previousSettingBeta === true || previousSettingBeta === 'true') {
|
||||
if (previousSettingBeta === 'true') {
|
||||
previousSettingBeta = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue