Skip to content

Commit 185f4cb

Browse files
committed
#60 Fixed snow parsing.
1 parent 249ee09 commit 185f4cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/prominence/openweathermap/api/mapper/OneCallWeatherResponseMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ private Snow parseSnow(JsonNode root) {
418418
if (snowNode != null) {
419419
final JsonNode OneHourNode = snowNode.get("1h");
420420
if (OneHourNode != null) {
421-
Rain.withOneHourLevelValue(OneHourNode.asDouble());
421+
return Snow.withOneHourLevelValue(OneHourNode.asDouble());
422422
}
423423
}
424424
return null;

0 commit comments

Comments
 (0)