Skip to content

Commit 4b9c132

Browse files
task: Remove redundant condition
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 166ec8b commit 4b9c132

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Classes/Command/SchedulerCommandController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ protected function queueDueJobs(Pool $pool, string $groupName, int $parallel, ?P
171171
$process->on(Pool::EVENT_EXIT, function () use ($pool, $retry, $ping, $pollScheduler, &$numberOfHandledJobs) {
172172
$pool->eventLoop->cancelTimer($ping);
173173
$numberOfHandledJobs--;
174-
if ($numberOfHandledJobs === 0) {
175-
($numberOfHandledJobs === 0) && $retry->scheduleAll();
176-
}
174+
if ($numberOfHandledJobs === 0) {
175+
$retry->scheduleAll();
176+
}
177177
// A slot just freed up - pick up the next due job without waiting for the next periodic tick.
178178
$pollScheduler?->requestImmediatePoll();
179179
});

0 commit comments

Comments
 (0)