Skip to content

Commit 0f0cbd1

Browse files
Reduce meaningless intermediate variables (#56927)
1 parent b6ecc7d commit 0f0cbd1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Illuminate/Queue/SqsQueue.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,7 @@ protected function getQueueableOptions($job, $queue): array
223223

224224
$transformToString = fn ($value) => strval($value);
225225

226-
$messageGroup = $job->messageGroup ?? null;
227-
228-
$messageGroupId = transform($messageGroup, $transformToString);
226+
$messageGroupId = transform($job->messageGroup ?? null, $transformToString);
229227

230228
$messageDeduplicationId = match (true) {
231229
method_exists($job, 'deduplicationId') => transform($job->deduplicationId(), $transformToString),

0 commit comments

Comments
 (0)