mirror of
https://github.com/Prominence/openweathermap-java-api.git
synced 2026-07-02 18:56:46 +03:00
#60 Fixed snow parsing.
This commit is contained in:
+1
-1
@@ -418,7 +418,7 @@ public class OneCallWeatherResponseMapper {
|
||||
if (snowNode != null) {
|
||||
final JsonNode OneHourNode = snowNode.get("1h");
|
||||
if (OneHourNode != null) {
|
||||
Rain.withOneHourLevelValue(OneHourNode.asDouble());
|
||||
return Snow.withOneHourLevelValue(OneHourNode.asDouble());
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user