keyboard: Remove unnecessary boolean cast
In contexts where a statement (like if or while) expects a condition, any expression will be implicitly cast to boolean already without C-isms like double negation. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/606
This commit is contained in:
parent
2c1a81f448
commit
b87455c089
@ -227,7 +227,7 @@ var InputSourceSystemSettings = class extends InputSourceSettings {
|
||||
|
||||
for (let i = 0; i < layouts.length && !!layouts[i]; i++) {
|
||||
let id = layouts[i];
|
||||
if (!!variants[i])
|
||||
if (variants[i])
|
||||
id += '+' + variants[i];
|
||||
sourcesList.push({ type: INPUT_SOURCE_TYPE_XKB, id: id });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user