]> git.mxchange.org Git - friendica.git/commitdiff
Remove unused variable in Core\Worker::defer
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 17 Oct 2021 01:07:31 +0000 (21:07 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 24 Feb 2022 14:35:54 +0000 (09:35 -0500)
src/Core/Worker.php

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