From a318f243d6e38d50418382490425c92e89b285ab Mon Sep 17 00:00:00 2001 From: pushrbx Date: Wed, 13 Nov 2024 19:30:40 +0000 Subject: [PATCH] refactor --- app/Console/Commands/Indexer/IncrementalIndexer.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/Console/Commands/Indexer/IncrementalIndexer.php b/app/Console/Commands/Indexer/IncrementalIndexer.php index 490293d..e3c1f90 100644 --- a/app/Console/Commands/Indexer/IncrementalIndexer.php +++ b/app/Console/Commands/Indexer/IncrementalIndexer.php @@ -247,10 +247,6 @@ class IncrementalIndexer extends Command implements PromptsForMissingInput $this->fetchIds($mediaType, $idsToFetch, $delay, $resume); } - if ($this->cancelled && $this->receivedSignal > 0) - { - return 128 + $this->receivedSignal; - } - return 0; + return $this->cancelled && $this->receivedSignal > 0 ? 128 + $this->receivedSignal : 0; } }