Skip to content

Commit

Permalink
DT-1680 Removing two broken zero-value Surrender scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
gj0dcsa committed Oct 1, 2024
1 parent 374d888 commit df84fac
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ private EblSurrenderScenarioListBuilder thenAllPathsFrom(
return switch (surrenderState) {
case AVAILABLE_FOR_SURRENDER -> thenEither(
requestSurrenderForDelivery(204).thenAllPathsFrom(DELIVERY_SURRENDER_REQUESTED),
requestSurrenderForAmendment(204).thenAllPathsFrom(AMENDMENT_SURRENDER_REQUESTED),
acceptSurrenderRequest(409).thenAllHappyPathsFrom(AVAILABLE_FOR_SURRENDER),
rejectSurrenderRequest(409).thenAllHappyPathsFrom(AVAILABLE_FOR_SURRENDER)
requestSurrenderForAmendment(204).thenAllPathsFrom(AMENDMENT_SURRENDER_REQUESTED)
);
case DELIVERY_SURRENDER_REQUESTED -> thenEither(
acceptSurrenderRequest(204).thenAllPathsFrom(SURRENDERED_FOR_DELIVERY),
Expand Down

0 comments on commit df84fac

Please sign in to comment.