make code better
This commit is contained in:
parent
8210f983d3
commit
306b905c2b
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ fun HourlyWeatherDataDto.toHourlyWeatherDataMap(): Map<Int, List<HourlyWeatherDa
|
||||||
temperature = temperatures[index].roundToInt(),
|
temperature = temperatures[index].roundToInt(),
|
||||||
apparentTemperature = apparentTemperatures[index].roundToInt(),
|
apparentTemperature = apparentTemperatures[index].roundToInt(),
|
||||||
windSpeed = windSpeeds[index].roundToInt(),
|
windSpeed = windSpeeds[index].roundToInt(),
|
||||||
precipitationProbability = if (index in precipitationProbabilities.indices) precipitationProbabilities[index] else null,
|
precipitationProbability = precipitationProbabilities.getOrNull(index),
|
||||||
weatherType = WeatherType.fromWMO(weatherCodes[index])
|
weatherType = WeatherType.fromWMO(weatherCodes[index])
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Reference in a new issue