Skip to content

Commit 6f9b5ad

Browse files
committed
Weather: Fix linting warnings
1 parent c94e53e commit 6f9b5ad

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

apps/weather/lib.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ function update(weatherEvent) {
9797
} else if (weather1.weather != null && weather1.weather.feels === undefined) {
9898
// Grab feels like temperature as we have it in v2
9999
weather1.weather.feels = decodeWeatherV2FeelsLike(weatherEvent);
100-
storage.write("weather.json", weather);
101-
exports.emit("update", weather);
100+
storage.write("weather.json", weather1);
101+
exports.emit("update", weather1);
102102
}
103103

104104
cloned = undefined; // Clear memory

apps/weather/settings.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(back) => {
1+
(function (back) {
22
const storage = require("Storage");
33
let settings = storage.readJSON("weatherSetting.json", 1);
44

@@ -21,7 +21,7 @@
2121

2222
const DATA_TYPE = ["basic", "extended", "forecast"];
2323

24-
menuItems = {
24+
let menuItems = {
2525
"": { "title": "Weather" },
2626
"Expiry": {
2727
value: "expiry" in settings ? settings.expiry : 2 * 3600000,
@@ -84,4 +84,4 @@
8484
}
8585

8686
E.showMenu(menuItems);
87-
};
87+
})

0 commit comments

Comments
 (0)