Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 49a452d

Browse files
committed
[Messenger] Simplify code
1 parent 8a1fba8 commit 49a452d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Symfony/Component/Messenger/Command/FailedMessagesRetryCommand.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,7 @@ private function runInteractive(string $failureTransportName, SymfonyStyle $io,
158158
// transports (like Doctrine), will cause the message
159159
// to be temporarily "acked", even if the user aborts
160160
// handling the message
161-
while (true) {
162-
if ($this->shouldStop) {
163-
break;
164-
}
165-
161+
while (!$this->shouldStop) {
166162
$envelopes = [];
167163
$this->phpSerializer?->acceptPhpIncompleteClass();
168164
try {

0 commit comments

Comments
 (0)