Skip to content

Commit

Permalink
refactor: cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
sitepark-veltrup committed Mar 21, 2024
1 parent 7764bd6 commit 054c64d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Service/Indexer/InternalResourceIndexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ private function indexResourcesPerLanguageIndex(
$indexedCount = $this->indexChunks(
$processId,
$lang,
$index,
$pathList,
$offset,
$parameter->chunkSize
Expand Down Expand Up @@ -271,6 +272,7 @@ private function indexResourcesPerLanguageIndex(
private function indexChunks(
string $processId,
string $lang,
string $index,
array $pathList,
int $offset,
int $length
Expand All @@ -283,7 +285,6 @@ private function indexChunks(
if ($resourceList === false) {
return false;
}
$index = $this->indexService->getIndex($lang);
if ($this->aborter->isAbortionRequested($index)) {
$this->aborter->resetAbortionRequest($index);
$this->indexerProgressHandler->abort();
Expand Down

0 comments on commit 054c64d

Please sign in to comment.