Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
miklcct committed Oct 1, 2024
1 parent 86bc0e5 commit 8c72fba
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,15 @@ private OptionalLong getTime(GtfsRealtime.TripUpdate.StopTimeEvent stopTimeEvent
}

int arrivalDelay() {
return stopTimeUpdate.hasArrival()
? getDelay(stopTimeUpdate.getArrival())
: 0;
return stopTimeUpdate.hasArrival() ? getDelay(stopTimeUpdate.getArrival()) : 0;
}

int departureDelay() {
return stopTimeUpdate.hasDeparture()
? getDelay(stopTimeUpdate.getDeparture())
: 0;
return stopTimeUpdate.hasDeparture() ? getDelay(stopTimeUpdate.getDeparture()) : 0;
}

private int getDelay(GtfsRealtime.TripUpdate.StopTimeEvent stopTimeEvent) {
return stopTimeEvent.hasDelay()
? stopTimeEvent.getDelay()
: 0;
return stopTimeEvent.hasDelay() ? stopTimeEvent.getDelay() : 0;
}

boolean isSkipped() {
Expand Down

0 comments on commit 8c72fba

Please sign in to comment.