[Settings] Use nullish operator for get default value
This commit is contained in:
parent
14f342ef2f
commit
ba9b26945c
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class Settings { // Heavily based on original for compat, but simplified and twe
|
||||||
}
|
}
|
||||||
|
|
||||||
get(key, defaultValue = false) {
|
get(key, defaultValue = false) {
|
||||||
return this.settings[key] || defaultValue;
|
return this.settings[key] ?? defaultValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
set(key, value) {
|
set(key, value) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue