Remove useless returns and now unused jsdoc variables

This commit is contained in:
veeck 2021-09-02 20:35:06 +02:00
parent e2158716d6
commit a273266e5e
6 changed files with 6 additions and 9 deletions

View File

@ -25,6 +25,7 @@
"prettier/prettier": "error", "prettier/prettier": "error",
"eqeqeq": "error", "eqeqeq": "error",
"no-prototype-builtins": "off", "no-prototype-builtins": "off",
"no-unused-vars": "off" "no-unused-vars": "off",
"no-useless-return": "error"
} }
} }

View File

@ -513,8 +513,6 @@ WeatherProvider.register("envcanada", {
weather.maxTemperature = this.convertTemp(nextTemp); weather.maxTemperature = this.convertTemp(nextTemp);
} }
} }
return;
}, },
// //
@ -560,8 +558,6 @@ WeatherProvider.register("envcanada", {
weather.precipitation = foreGroup[today].querySelector("abbreviatedForecast pop").textContent; weather.precipitation = foreGroup[today].querySelector("abbreviatedForecast pop").textContent;
weather.precipitationUnits = foreGroup[today].querySelector("abbreviatedForecast pop").getAttribute("units"); weather.precipitationUnits = foreGroup[today].querySelector("abbreviatedForecast pop").getAttribute("units");
} }
return;
}, },
// //

View File

@ -1,4 +1,4 @@
/* global WeatherProvider, WeatherObject, SunCalc */ /* global WeatherProvider, WeatherObject */
/* Magic Mirror /* Magic Mirror
* Module: Weather * Module: Weather

View File

@ -1,4 +1,4 @@
/* global WeatherProvider, WeatherObject, SunCalc */ /* global WeatherProvider, WeatherObject */
/* Magic Mirror /* Magic Mirror
* Module: Weather * Module: Weather

View File

@ -1,4 +1,4 @@
/* global WeatherProvider, WeatherObject, SunCalc */ /* global WeatherProvider, WeatherObject */
/* Magic Mirror /* Magic Mirror
* Module: Weather * Module: Weather

View File

@ -1,4 +1,4 @@
/* global WeatherProvider, WeatherObject, SunCalc */ /* global WeatherProvider, WeatherObject */
/* Magic Mirror /* Magic Mirror
* Module: Weather * Module: Weather