From b98c3c808ca37c33c258b4efbd2a83d1f9f347f4 Mon Sep 17 00:00:00 2001 From: Joel Lappalainen Date: Mon, 29 Apr 2024 15:54:40 +0300 Subject: [PATCH] Rename parameter to better match its type --- .../updater/trip/TimetableSnapshotSource.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/opentripplanner/updater/trip/TimetableSnapshotSource.java b/src/main/java/org/opentripplanner/updater/trip/TimetableSnapshotSource.java index 6b00dcb8b1a..e66174b0126 100644 --- a/src/main/java/org/opentripplanner/updater/trip/TimetableSnapshotSource.java +++ b/src/main/java/org/opentripplanner/updater/trip/TimetableSnapshotSource.java @@ -1137,7 +1137,7 @@ private Result handleModifiedTrip( private Result handleCanceledTrip( FeedScopedId tripId, final LocalDate serviceDate, - CancelationType markAsDeleted, + CancelationType cancelationType, boolean canceledPreviouslyAddedTrip ) { // if previously a added trip was removed, there can't be a scheduled trip to remove @@ -1145,7 +1145,11 @@ private Result handleCanceledTrip( return Result.success(UpdateSuccess.noWarnings()); } // Try to cancel scheduled trip - final boolean cancelScheduledSuccess = cancelScheduledTrip(tripId, serviceDate, markAsDeleted); + final boolean cancelScheduledSuccess = cancelScheduledTrip( + tripId, + serviceDate, + cancelationType + ); if (!cancelScheduledSuccess) { debug(tripId, "No pattern found for tripId. Skipping cancellation.");