Skip to content

Commit

Permalink
Use shorter parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Nov 27, 2024
1 parent 2ad1ba5 commit 8a9b964
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -531,17 +531,17 @@ private TimetableSnapshot lazyGetTimeTableSnapShot() {
}

@Override
public TripOnServiceDate getTripOnServiceDate(FeedScopedId tripOnServiceDateId) {
public TripOnServiceDate getTripOnServiceDate(FeedScopedId id) {
TimetableSnapshot currentSnapshot = lazyGetTimeTableSnapShot();
if (currentSnapshot != null) {
TripOnServiceDate tripOnServiceDate = currentSnapshot.getRealTimeAddedTripOnServiceDateById(
tripOnServiceDateId
id
);
if (tripOnServiceDate != null) {
return tripOnServiceDate;
}
}
return timetableRepository.getTripOnServiceDateById(tripOnServiceDateId);
return timetableRepository.getTripOnServiceDateById(id);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ List<TripTimeOnDate> findTripTimeOnDate(
/**
* Return the TripOnServiceDate for a given id, including real-time updates.
*/
TripOnServiceDate getTripOnServiceDate(FeedScopedId datedServiceJourneyId);
TripOnServiceDate getTripOnServiceDate(FeedScopedId id);

Collection<TripOnServiceDate> listTripsOnServiceDate();

Expand Down

0 comments on commit 8a9b964

Please sign in to comment.