tidy up code for weather

This commit is contained in:
vincep5
2019-02-27 09:09:37 -06:00
parent d8765578c8
commit ebc1e5bf12
2 changed files with 28 additions and 42 deletions

View File

@@ -103,13 +103,13 @@ WeatherProvider.register("openweathermap", {
// initial variable declaration
const days = [];
// variables for temperature range and rain
var minTemp = [];
var maxTemp = [];
var rain = 0;
var snow = 0;
let minTemp = [];
let maxTemp = [];
let rain = 0;
let snow = 0;
// variable for date
let date = "";
var weather = new WeatherObject(this.config.units);
let weather = new WeatherObject(this.config.units);
for (const forecast of forecasts) {