From 44c14aa53ed9d64f64a860c0e71d7101edaccd80 Mon Sep 17 00:00:00 2001 From: Samer Albahra Date: Wed, 8 Jul 2015 00:21:14 -0500 Subject: [PATCH] Change reply to 100% when invalid data is recieved --- routes/weather.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/weather.js b/routes/weather.js index 73880de..cf79c15 100644 --- a/routes/weather.js +++ b/routes/weather.js @@ -194,7 +194,7 @@ function calculateWeatherScale( adjustmentMethod, adjustmentOptions, weather ) { // Check to make sure valid data exists for all factors if ( !validateValues( [ "temp", "humidity", "precip" ], weather ) ) { - return -1; + return 100; } var temp = ( ( weather.maxTemp + weather.minTemp ) / 2 ) || weather.temp,