cleanup: Require "dangling" commas

Since ES5, trailing commas in arrays and object literals are valid.
We generally haven't used them so far, but they are actually a good
idea, as they make additions and removals in diffs much cleaner.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/805
This commit is contained in:
Florian Müllner
2019-08-20 23:43:54 +02:00
committed by Georges Basile Stavracas Neto
parent 07cc84f632
commit ebf77748a8
81 changed files with 452 additions and 445 deletions

View File

@ -48,7 +48,7 @@ class OsdWindow extends St.Widget {
x_expand: true,
y_expand: true,
x_align: Clutter.ActorAlign.CENTER,
y_align: Clutter.ActorAlign.CENTER
y_align: Clutter.ActorAlign.CENTER,
});
this._monitorIndex = monitorIndex;
@ -69,7 +69,7 @@ class OsdWindow extends St.Widget {
this._level = new BarLevel.BarLevel({
style_class: 'level',
value: 0
value: 0,
});
this._box.add(this._level);
@ -116,7 +116,7 @@ class OsdWindow extends St.Widget {
if (this.visible) {
this._level.ease_property('value', value, {
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
duration: LEVEL_ANIMATION_TIME
duration: LEVEL_ANIMATION_TIME,
});
} else {
this._level.value = value;
@ -141,7 +141,7 @@ class OsdWindow extends St.Widget {
this.ease({
opacity: 255,
duration: FADE_TIME,
mode: Clutter.AnimationMode.EASE_OUT_QUAD
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
});
}
@ -169,7 +169,7 @@ class OsdWindow extends St.Widget {
onComplete: () => {
this._reset();
Meta.enable_unredirect_for_display(global.display);
}
},
});
return GLib.SOURCE_REMOVE;
}