From cb2cc0cb9e6f5170762f3d957b2918b8c20ae18a Mon Sep 17 00:00:00 2001 From: DanielWeeber Date: Tue, 15 Aug 2017 20:57:18 +0200 Subject: [PATCH] Fix linting? --- modules/default/weatherforecast/weatherforecast.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/default/weatherforecast/weatherforecast.js b/modules/default/weatherforecast/weatherforecast.js index 44f420b1..fa78b3ef 100644 --- a/modules/default/weatherforecast/weatherforecast.js +++ b/modules/default/weatherforecast/weatherforecast.js @@ -142,10 +142,10 @@ Module.register("weatherforecast",{ var maxTempCell = document.createElement("td"); maxTempCell.innerHTML = forecast.maxTemp; - if (this.config.scale == "C" || this.config.scale == "c") { + if(this.config.scale == "C" || this.config.scale == "c") { maxTempCell.innerHTML += " °C"; } else { - if (this.config.scale == "F" || this.config.scale == "f") { + if(this.config.scale == "F" || this.config.scale == "f") { maxTempCell.innerHTML += " °F"; } } @@ -154,10 +154,10 @@ Module.register("weatherforecast",{ var minTempCell = document.createElement("td"); minTempCell.innerHTML = forecast.minTemp; - if (scale == "C" || scale == "c") { + if(this.config.scale == "C" || this.config.scale == "c") { minTempCell.innerHTML += " °C"; } else { - if (scale == "F" || scale == "f") { + if(this.config.scale == "F" || this.config.scale == "f") { minTempCell.innerHTML += " °F"; } }