Skip to content

Commit d691a2c

Browse files
Update src/main/java/edu/ie3/datamodel/models/value/WeatherValue.java
Co-authored-by: Daniel Feismann <98817556+danielfeismann@users.noreply.github.com>
1 parent 64c0172 commit d691a2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/edu/ie3/datamodel/models/value/WeatherValue.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ public WeatherValue(
8686
new SolarIrradianceValue(directSolarIrradiance, diffuseSolarIrradiance),
8787
new TemperatureValue(temperature),
8888
new WindValue(direction, velocity),
89-
groundTempValOne == null ? null : new GroundTemperatureValue(groundTempValOne),
90-
groundTempValTwo == null ? null : new GroundTemperatureValue(groundTempValTwo));
89+
groundTempValOne.map(GroundTemperatureValue::new),
90+
groundTempValTwo.map(GroundTemperatureValue::new));
9191
}
9292

9393
public Point getCoordinate() {

0 commit comments

Comments
 (0)