Skip to content

Commit 547ac8a

Browse files
authored
Fix compilation error in MetOfficeClient.cpp (#199)
1 parent 78f6e14 commit 547ac8a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/MetOfficeClient.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,5 @@ String MetOfficeClient::getWeatherIconName(String weatherType) {
458458
if (weatherType == "28") return "d_thshwr"; // Thunder shower (night)
459459
if (weatherType == "29") return "d_thshwr"; // Thunder shower (night)
460460
if (weatherType == "30") return "thunder"; // Thunder
461-
int weatherTypeAsInt = weatherType.toInt();
462-
if (weatherTypeAsInt > 30) return "no_data";// Something unexpected has happened!
461+
return "no_data" ;// Something unexpected has happened!
463462
}

0 commit comments

Comments
 (0)