Remove unused variable in Core\Worker::defer

This commit is contained in:
Hypolite Petovan 2021-10-16 21:07:31 -04:00
parent 52f5d924b7
commit 48e2963ac7

View File

@ -1378,8 +1378,9 @@ class Worker
* Defers the current worker entry * Defers the current worker entry
* *
* @return boolean had the entry been deferred? * @return boolean had the entry been deferred?
* @throws \Exception
*/ */
public static function defer() public static function defer(): bool
{ {
$queue = DI::app()->getQueue(); $queue = DI::app()->getQueue();
@ -1387,7 +1388,6 @@ class Worker
return false; return false;
} }
$retrial = $queue['retrial'];
$id = $queue['id']; $id = $queue['id'];
$priority = $queue['priority']; $priority = $queue['priority'];