From cd82c527f5b2b7512e903b9db1b693e376376364 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 12 May 2020 09:05:37 +0000 Subject: [PATCH] Removed useless error handling --- src/Worker/Delivery.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Worker/Delivery.php b/src/Worker/Delivery.php index 0a865cb3a7..c69628398a 100644 --- a/src/Worker/Delivery.php +++ b/src/Worker/Delivery.php @@ -58,14 +58,12 @@ class Delivery if ($cmd == self::MAIL) { $target_item = DBA::selectFirst('mail', [], ['id' => $target_id]); if (!DBA::isResult($target_item)) { - self::setFailedQueue($cmd, $target_item); return; } $uid = $target_item['uid']; } elseif ($cmd == self::SUGGESTION) { $target_item = DBA::selectFirst('fsuggest', [], ['id' => $target_id]); if (!DBA::isResult($target_item)) { - self::setFailedQueue($cmd, $target_item); return; } $uid = $target_item['uid']; @@ -75,7 +73,6 @@ class Delivery } else { $item = Model\Item::selectFirst(['parent'], ['id' => $target_id]); if (!DBA::isResult($item) || empty($item['parent'])) { - self::setFailedQueue($cmd, $target_item); return; } $parent_id = intval($item['parent']); @@ -97,7 +94,6 @@ class Delivery if (empty($target_item)) { Logger::log('Item ' . $target_id . "wasn't found. Quitting here."); - self::setFailedQueue($cmd, $target_item); return; } -- 2.39.5