run prettier

This commit is contained in:
karsten13
2021-06-11 22:24:21 +02:00
parent 044935a164
commit 1a244726aa
21 changed files with 41 additions and 85 deletions

View File

@@ -341,7 +341,11 @@ Module.register("weatherforecast", {
*/
processWeather: function (data, momenttz) {
let mom;
if (momenttz === null) {mom = moment} else {mom = momenttz};
if (momenttz === null) {
mom = moment;
} else {
mom = momenttz;
}
// Forcast16 (paid) API endpoint provides this data. Onecall endpoint
// does not.
if (data.city) {
@@ -486,7 +490,11 @@ Module.register("weatherforecast", {
*/
processRain: function (forecast, allForecasts, momenttz) {
let mom;
if (momenttz === null) {mom = moment} else {mom = momenttz};
if (momenttz === null) {
mom = moment;
} else {
mom = momenttz;
}
//If the amount of rain actually is a number, return it
if (!isNaN(forecast.rain)) {
return forecast.rain;