Skip to content

Commit b4e9e4b

Browse files
luismrCopilot
andauthored
Update src/main/java/dev/luismachadoreis/flighttracker/server/common/infrastructure/ClockProperties.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a1dfdfe commit b4e9e4b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/dev/luismachadoreis/flighttracker/server/common/infrastructure/ClockProperties.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ public record ClockProperties(
1414
String timezone
1515
) {
1616
public ClockProperties {
17-
if (timezone == null) {
18-
timezone = "UTC";
19-
}
17+
timezone = Objects.requireNonNullElse(timezone, "UTC");
2018
}
2119
}

0 commit comments

Comments
 (0)