[gnome-shell] workspace: Don't initialize variables to undefined
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] workspace: Don't initialize variables to undefined
- Date: Wed, 11 Sep 2019 21:14:06 +0000 (UTC)
commit f54e7804c5667dc9055320ad43055e5f71170cdc
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Aug 19 21:14:33 2019 +0200
workspace: Don't initialize variables to undefined
The declaration itself already does this implicitly.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710
js/ui/workspace.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index 9a8c0d94db..d16a5c1ca5 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -1985,7 +1985,7 @@ var Workspace = class {
}
_onCloneSelected(clone, time) {
- let wsIndex = undefined;
+ let wsIndex;
if (this.metaWorkspace)
wsIndex = this.metaWorkspace.index();
Main.activateWindow(clone.metaWindow, time, wsIndex);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]