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
@ -311,9 +311,8 @@ var Key = GObject.registerClass({
|
||||
_press(key) {
|
||||
this.emit('activated');
|
||||
|
||||
if (key != this.key || this._extended_keys.length == 0) {
|
||||
if (key != this.key || this._extended_keys.length == 0)
|
||||
this.emit('pressed', this._getKeyval(key), key);
|
||||
}
|
||||
|
||||
if (key == this.key) {
|
||||
this._pressTimeoutId = GLib.timeout_add(GLib.PRIORITY_DEFAULT,
|
||||
|
Reference in New Issue
Block a user