Skip to content

Commit

Permalink
prettier reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tkalvas committed Nov 29, 2024
1 parent d345a03 commit c161378
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,15 @@ public static Duration parseOsmDuration(String duration) {
hours = Long.parseLong(duration.substring(0, i));
minutes = Long.parseLong(duration.substring(i + 1, j));
seconds = Long.parseLong(duration.substring(j + 1));
if (j - i == 3 && duration.length() - j == 3 && hours >= 0 && minutes >= 0 && minutes < 60 && seconds >= 0 && seconds < 60) {
if (
j - i == 3 &&
duration.length() - j == 3 &&
hours >= 0 &&
minutes >= 0 &&
minutes < 60 &&
seconds >= 0 &&
seconds < 60
) {
return Duration.ofHours(hours).plusMinutes(minutes).plusSeconds(seconds);
}
break;
Expand Down

0 comments on commit c161378

Please sign in to comment.