cleanup: Avoid unnecessary braces
Our coding style has always been to avoid braces when all blocks are single-lines. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/805
This commit is contained in:

committed by
Georges Basile Stavracas Neto

parent
69f63dc94f
commit
67ea424525
@ -87,9 +87,8 @@ class ListSearchResult extends SearchResult {
|
||||
|
||||
// An icon for, or thumbnail of, content
|
||||
let icon = this.metaInfo['createIcon'](this.ICON_SIZE);
|
||||
if (icon) {
|
||||
if (icon)
|
||||
titleBox.add(icon);
|
||||
}
|
||||
|
||||
let title = new St.Label({
|
||||
text: this.metaInfo['name'],
|
||||
@ -689,11 +688,10 @@ var SearchResultsView = GObject.registerClass({
|
||||
this._statusBin.visible = !haveResults;
|
||||
|
||||
if (!haveResults) {
|
||||
if (this.searchInProgress) {
|
||||
if (this.searchInProgress)
|
||||
this._statusText.set_text(_("Searching…"));
|
||||
} else {
|
||||
else
|
||||
this._statusText.set_text(_("No results."));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user