Skip to content

Commit 551a7a7

Browse files
committed
fix asking for the retry option although --force was used
1 parent 7f71d9d commit 551a7a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Command/FailedMessagesRetryCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ private function runWorker(string $failureTransportName, ReceiverInterface $rece
224224

225225
$this->forceExit = true;
226226
try {
227-
$choice = $io->choice('Please select an action', ['retry', 'delete', 'skip'], 'retry');
228-
$shouldHandle = $shouldForce || 'retry' === $choice;
227+
$choice = $shouldForce ? 'retry' : $io->choice('Please select an action', ['retry', 'delete', 'skip'], 'retry');
228+
$shouldHandle = 'retry' === $choice;
229229
} finally {
230230
$this->forceExit = false;
231231
}

0 commit comments

Comments
 (0)