From fc548202bfd54bce8d1dd7bb79b5b7d430f71df3 Mon Sep 17 00:00:00 2001 From: Chris MacDonald <31731869+chrismacdonaldw@users.noreply.github.com> Date: Thu, 7 Mar 2024 15:34:03 -0400 Subject: [PATCH] Revert changes. --- src/Plugin/QueueWorker/FixityCheckWorker.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Plugin/QueueWorker/FixityCheckWorker.php b/src/Plugin/QueueWorker/FixityCheckWorker.php index 04ad274..2bc09b5 100644 --- a/src/Plugin/QueueWorker/FixityCheckWorker.php +++ b/src/Plugin/QueueWorker/FixityCheckWorker.php @@ -60,13 +60,8 @@ class FixityCheckWorker extends QueueWorkerBase implements ContainerFactoryPlugi */ public function processItem($data) { if ($data instanceof FixityCheckInterface) { - if (empty($data->getFile())) { - $data->delete(); - } - else { - /** @var \Drupal\dgi_fixity\FixityCheckInterface $data */ - $this->fixity->check($data->getFile()); - } + /** @var \Drupal\dgi_fixity\FixityCheckInterface $data */ + $this->fixity->check($data->getFile()); } }