Skip to content

Commit de811ea

Browse files
committed
formatting
1 parent 028469a commit de811ea

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/Illuminate/Queue/SqsQueue.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,11 @@ public function pop($queue = null)
148148
*/
149149
public function clear($queue)
150150
{
151-
$size = $this->size($queue);
152-
153-
$this->sqs->purgeQueue([
154-
'QueueUrl' => $this->getQueue($queue),
155-
]);
156-
157-
return $size;
151+
return tap($this->size($queue), function () use ($queue) {
152+
$this->sqs->purgeQueue([
153+
'QueueUrl' => $this->getQueue($queue),
154+
]);
155+
});
158156
}
159157

160158
/**

0 commit comments

Comments
 (0)