Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 16, 2020
1 parent 028469a commit de811ea
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/Illuminate/Queue/SqsQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,11 @@ public function pop($queue = null)
*/
public function clear($queue)
{
$size = $this->size($queue);

$this->sqs->purgeQueue([
'QueueUrl' => $this->getQueue($queue),
]);

return $size;
return tap($this->size($queue), function () use ($queue) {
$this->sqs->purgeQueue([
'QueueUrl' => $this->getQueue($queue),
]);
});
}

/**
Expand Down

0 comments on commit de811ea

Please sign in to comment.