cleanup: Avoid unnecessary parentheses
Extra parentheses usually add noise rather than clarity, so avoid them. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/805
This commit is contained in:

committed by
Georges Basile Stavracas Neto

parent
ebf77748a8
commit
e44adb92cf
@ -105,13 +105,13 @@ class OsdWindow extends St.Widget {
|
||||
}
|
||||
|
||||
setLabel(label) {
|
||||
this._label.visible = (label != undefined);
|
||||
this._label.visible = label != undefined;
|
||||
if (label)
|
||||
this._label.text = label;
|
||||
}
|
||||
|
||||
setLevel(value) {
|
||||
this._level.visible = (value != undefined);
|
||||
this._level.visible = value != undefined;
|
||||
if (value != undefined) {
|
||||
if (this.visible) {
|
||||
this._level.ease_property('value', value, {
|
||||
|
Reference in New Issue
Block a user