Skip to content

Commit

Permalink
shorten code
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jul 18, 2019
1 parent 9227682 commit 1003c27
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Illuminate/Queue/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,7 @@ public function process($connectionName, $job, WorkerOptions $options)
);

if ($job->isDeleted()) {
$this->raiseAfterJobEvent($connectionName, $job);

return;
return $this->raiseAfterJobEvent($connectionName, $job);
}

// Here we will fire off the job and let it process. We will catch any exceptions so
Expand Down

0 comments on commit 1003c27

Please sign in to comment.