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
@ -458,8 +458,8 @@ var ViewSelector = GObject.registerClass({
|
||||
|
||||
_onStageKeyFocusChanged() {
|
||||
let focus = global.stage.get_key_focus();
|
||||
let appearFocused = (this._entry.contains(focus) ||
|
||||
this._searchResults.contains(focus));
|
||||
let appearFocused = this._entry.contains(focus) ||
|
||||
this._searchResults.contains(focus);
|
||||
|
||||
this._text.set_cursor_visible(appearFocused);
|
||||
|
||||
@ -517,7 +517,7 @@ var ViewSelector = GObject.registerClass({
|
||||
_onTextChanged() {
|
||||
let terms = getTermsForSearchString(this._entry.get_text());
|
||||
|
||||
this._searchActive = (terms.length > 0);
|
||||
this._searchActive = terms.length > 0;
|
||||
this._searchResults.setTerms(terms);
|
||||
|
||||
if (this._searchActive) {
|
||||
|
Reference in New Issue
Block a user