cleanup: remove controversial naming

Replace "whitelist" and "blacklist" with "allow" and "deny" in variable
naming, which better represents the purpose of those variables.

There is no functional change.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1393
This commit is contained in:
Olivier Fourdan
2020-08-04 10:39:29 +02:00
parent 18155fc6ea
commit 3541a57570
4 changed files with 14 additions and 14 deletions

View File

@@ -113,10 +113,10 @@ function _loadMode(file, info) {
}
_modes[modeName] = {};
let propBlacklist = ['unlockDialog'];
const excludedProps = ['unlockDialog'];
for (let prop in _modes[DEFAULT_MODE]) {
if (newMode[prop] !== undefined &&
!propBlacklist.includes(prop))
!excludedProps.includes(prop))
_modes[modeName][prop] = newMode[prop];
}
_modes[modeName]['isPrimary'] = true;