style: Avoid trailing commas in array destructuring

When destructuring multiple return values, we often use trailing commas
to indicate that there are additional elements that we are ignoring.

There isn't anything inherently wrong with that, but it's a style that's
too confusing for eslint - on the one hand we require a space after a
comma, on the other hand we require no space before closing brackets.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/49
This commit is contained in:
Florian Müllner
2019-01-27 23:50:49 +01:00
parent 8a2b9abc09
commit 05d961dfe1
+1 -1
View File
@@ -50,7 +50,7 @@ function _onMenuStateChanged(menu, isOpen) {
if (isOpen)
return;
let [x, y,] = global.get_pointer();
let [x, y] = global.get_pointer();
let actor = global.stage.get_actor_at_pos(Clutter.PickMode.REACTIVE, x, y);
if (Me.stateObj.someWindowListContains(actor))
actor.sync_hover();