cleanup: Mark unused (but useful) variables as ignored

While we aren't using those destructured variables, they are still useful
to document the meaning of those elements. We don't want eslint to keep
warning about them though, so mark them accordingly.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/50
This commit is contained in:
Florian Müllner
2019-01-27 00:12:20 +01:00
parent 7b363fd659
commit 08a04b2f02
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -157,7 +157,7 @@ const Widget = GObject.registerClass({
}
_deleteSelected() {
let [any, model, iter] = this._treeView.get_selection().get_selected();
let [any, model_, iter] = this._treeView.get_selection().get_selected();
if (any) {
let appInfo = this._store.get_value(iter, Columns.APPINFO);
@@ -174,7 +174,7 @@ const Widget = GObject.registerClass({
if (isNaN(index) || index < 0)
index = 1;
let path = Gtk.TreePath.new_from_string(pathString);
let [model, iter] = this._store.get_iter(path);
let [model_, iter] = this._store.get_iter(path);
let appInfo = this._store.get_value(iter, Columns.APPINFO);
this._changedPermitted = false;
+1 -1
View File
@@ -219,7 +219,7 @@ function enable() {
});
winInjections['relayout'] = injectToFunction(Workspace.WindowOverlay.prototype, 'relayout', function(_animate) {
let [cloneX, cloneY, cloneWidth, cloneHeight] = this._windowClone.slot;
let [cloneX, cloneY, cloneWidth_, cloneHeight_] = this._windowClone.slot;
let textX = cloneX - 2;
let textY = cloneY - 2;