Appease the linter

pull/21833/head
Travis Ralston 2019-01-25 09:30:13 -07:00
parent d136c33a87
commit e1bc1eee43
1 changed files with 2 additions and 2 deletions

View File

@ -238,7 +238,7 @@ export default class SettingsStore {
if (!handler) { if (!handler) {
return SettingsStore._getFinalValue(setting, level, roomId, null, null); return SettingsStore._getFinalValue(setting, level, roomId, null, null);
} }
let value = handler.getValue(settingName, roomId); const value = handler.getValue(settingName, roomId);
return SettingsStore._getFinalValue(setting, level, roomId, value, level); return SettingsStore._getFinalValue(setting, level, roomId, value, level);
} }
@ -247,7 +247,7 @@ export default class SettingsStore {
if (!handler) continue; if (!handler) continue;
if (excludeDefault && levelOrder[i] === "default") continue; if (excludeDefault && levelOrder[i] === "default") continue;
let value = handler.getValue(settingName, roomId); const value = handler.getValue(settingName, roomId);
if (value === null || value === undefined) continue; if (value === null || value === undefined) continue;
return SettingsStore._getFinalValue(setting, level, roomId, value, levelOrder[i]); return SettingsStore._getFinalValue(setting, level, roomId, value, levelOrder[i]);
} }