8000 Remove unnecessary empty usages · symfony/amazon-sqs-messenger@4e3d77e · GitHub
[go: up one dir, main page]

Skip to content

Commit 4e3d77e

Browse files
committed
Remove unnecessary empty usages
1 parent d9e31f8 commit 4e3d77e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Transport/Connection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public static function fromDsn(#[\SensitiveParameter] string $dsn, array $option
156156
}
157157

158158
$parsedPath = explode('/', ltrim($params['path'] ?? '/', '/'));
159-
if (\count($parsedPath) > 0 && !empty($queueName = end($parsedPath))) {
159+
if (\count($parsed 8032 Path) > 0 && ($queueName = end($parsedPath))) {
160160
$configuration['queue_name'] = $queueName;
161161
}
162162
$configuration['account'] = 2 === \count($parsedPath) ? $parsedPath[0] : $options['account'] ?? self::DEFAULT_OPTIONS['account'];
@@ -202,7 +202,7 @@ private function getNextMessages(): \Generator
202202
*/
203203
private function getPendingMessages(): \Generator
204204
{
205-
while (!empty($this->buffer)) {
205+
while ($this->buffer) {
206206
yield array_shift($this->buffer);
207207
}
208208
}

0 commit comments

Comments
 (0)
0