From 62eb4f20daf40c86f6775e16fcca05aaff91bff2 Mon Sep 17 00:00:00 2001 From: Pranav Sethi <96.pranav@gmail.com> Date: Sat, 3 Mar 2018 05:08:12 -0500 Subject: [PATCH] Fixed Trailling Spaces to Pass checks --- modules/default/currentweather/currentweather.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/default/currentweather/currentweather.js b/modules/default/currentweather/currentweather.js index 25e437ba..c29d587b 100644 --- a/modules/default/currentweather/currentweather.js +++ b/modules/default/currentweather/currentweather.js @@ -399,7 +399,7 @@ Module.register("currentweather",{ break; case "imperial": tempInF = this.temperature; break; - case "default": + case "default": var tc = this.temperature - 273.15; tempInF = 1.8 * tc + 32; break; @@ -424,11 +424,11 @@ Module.register("currentweather",{ } else if (tempInF > 80 && this.humidity > 40){ // heat index - var Hindex = -42.379 + 2.04901523*tempInF + 10.14333127*this.humidity + var Hindex = -42.379 + 2.04901523*tempInF + 10.14333127*this.humidity - 0.22475541*tempInF*this.humidity - 6.83783*Math.pow(10,-3)*tempInF*tempInF - 5.481717*Math.pow(10,-2)*this.humidity*this.humidity - + 1.22874*Math.pow(10,-3)*tempInF*tempInF*this.humidity - + 8.5282*Math.pow(10,-4)*tempInF*this.humidity*this.humidity + + 1.22874*Math.pow(10,-3)*tempInF*tempInF*this.humidity + + 8.5282*Math.pow(10,-4)*tempInF*this.humidity*this.humidity - 1.99*Math.pow(10,-6)*tempInF*tempInF*this.humidity*this.humidity; // this.feelsLike = Hindex.toFixed(0); switch (this.config.units){