Skip to content

Commit

Permalink
Rename parameter to better match its type
Browse files Browse the repository at this point in the history
  • Loading branch information
optionsome committed Apr 29, 2024
1 parent 459348d commit b98c3c8
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1137,15 +1137,19 @@ private Result<UpdateSuccess, UpdateError> handleModifiedTrip(
private Result<UpdateSuccess, UpdateError> 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
if (canceledPreviouslyAddedTrip) {
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.");
Expand Down

0 comments on commit b98c3c8

Please sign in to comment.