Speed.ZERO as constant.

This commit is contained in:
Dennis Guse
2025-11-02 08:30:15 +01:00
parent a5e5d0ca51
commit fffeb40200
15 changed files with 42 additions and 45 deletions
@@ -36,7 +36,7 @@ public record Statistics(
public Speed getAverageSpeed() {
if (totalTime.isZero()) {
return Speed.of(0);
return Speed.ZERO;
}
return Speed.of(totalDistance, totalTime);
}