Skip to content

Commit

Permalink
phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Beranek committed Apr 16, 2024
1 parent 77f6699 commit aca1e2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Driver/RedisProxyListDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ public function wait(Closure $callback, array $priorities = []): void
continue;
}
$key = $this->getKey($priority);
if ($length = $this->getLength($key) === 0) {
$length = $this->getLength($key);
if ($length === 0) {
continue;
}
for ($i = 0; $i < $length; $i++) {
Expand Down

0 comments on commit aca1e2c

Please sign in to comment.