From 48ee4af7f93d63970b2019cfac4f3bf5c57ad9a8 Mon Sep 17 00:00:00 2001 From: Jens Lody Date: Tue, 7 Mar 2017 09:43:13 +0100 Subject: [PATCH] Fix double initialization of variable, fixes rhbz#1429776. --- src/extension.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/extension.js b/src/extension.js index e9dd1c9..e92478a 100644 --- a/src/extension.js +++ b/src/extension.js @@ -720,8 +720,7 @@ const OpenweatherMenuButton = new Lang.Class({ }, get _city() { - let cities = this._cities; - let cities = cities.split(" && "); + let cities = this._cities.split(" && "); if (cities && typeof cities == "string") cities = [cities]; if (!cities[0])