[Settings] Use nullish operator for get default value

This commit is contained in:
Ducko 2021-12-11 21:44:25 +00:00
parent 14f342ef2f
commit ba9b26945c
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class Settings { // Heavily based on original for compat, but simplified and twe
}
get(key, defaultValue = false) {
return this.settings[key] || defaultValue;
return this.settings[key] ?? defaultValue;
}
set(key, value) {