workspace: Don't initialize variables to undefined

The declaration itself already does this implicitly.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710
This commit is contained in:
Florian Müllner 2019-08-19 21:14:33 +02:00 committed by Florian Müllner
parent 7db5f8b28e
commit f54e7804c5

View File

@ -1985,7 +1985,7 @@ var Workspace = class {
} }
_onCloneSelected(clone, time) { _onCloneSelected(clone, time) {
let wsIndex = undefined; let wsIndex;
if (this.metaWorkspace) if (this.metaWorkspace)
wsIndex = this.metaWorkspace.index(); wsIndex = this.metaWorkspace.index();
Main.activateWindow(clone.metaWindow, time, wsIndex); Main.activateWindow(clone.metaWindow, time, wsIndex);