[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

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) {