Fix double initialization of variable, fixes rhbz#1429776.

merge-requests/218/head
Jens Lody 8 years ago
parent 141570b067
commit 48ee4af7f9
  1. 3
      src/extension.js

@ -720,8 +720,7 @@ const OpenweatherMenuButton = new Lang.Class({
}, },
get _city() { get _city() {
let cities = this._cities; let cities = this._cities.split(" && ");
let cities = cities.split(" && ");
if (cities && typeof cities == "string") if (cities && typeof cities == "string")
cities = [cities]; cities = [cities];
if (!cities[0]) if (!cities[0])

Loading…
Cancel
Save