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
@ -349,11 +349,10 @@ class ChatSource extends MessageTray.Source {
|
||||
|
||||
getIcon() {
|
||||
let file = this._contact.get_avatar_file();
|
||||
if (file) {
|
||||
if (file)
|
||||
return new Gio.FileIcon({ file: file });
|
||||
} else {
|
||||
else
|
||||
return new Gio.ThemedIcon({ name: 'avatar-default' });
|
||||
}
|
||||
}
|
||||
|
||||
getSecondaryIcon() {
|
||||
|
Reference in New Issue
Block a user