Skip to content

Commit 341a192

Browse files
committed
[fix] 강설량 값 파싱 방법 변경
1 parent 41d67ea commit 341a192

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/nambang_swag/bada_on/entity/Weather.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public void updateWeatherData(String category, String value) {
122122
case "WAV" -> waveHeight = parseFloat(value);
123123
case "PCP", "RN1" -> hourlyPrecipitation = parseAccumulation(value, "강수없음");
124124
case "REH" -> humidity = parseInt(value);
125-
case "SNO" -> hourlySnowAccumulation = parseAccumulation(value, "적설없음");
125+
case "SNO" -> hourlySnowAccumulation = parseHourlySnowAccumulation(value, "적설없음");
126126
}
127127
} catch (NumberFormatException e) {
128128
throw new IllegalArgumentException("Failed to parse value: " + value + " for category: " + category, e);

0 commit comments

Comments
 (0)