diff --git a/typo3/sysext/scheduler/Classes/Task/FileStorageIndexingTask.php b/typo3/sysext/scheduler/Classes/Task/FileStorageIndexingTask.php index 9ebb4cc52dc106b65b0214fca22f4e8c8f1ffb7d..9082b21ae1270f43a28dc511f7cd5e61dfe59b17 100644 --- a/typo3/sysext/scheduler/Classes/Task/FileStorageIndexingTask.php +++ b/typo3/sysext/scheduler/Classes/Task/FileStorageIndexingTask.php @@ -32,20 +32,14 @@ class FileStorageIndexingTask extends \TYPO3\CMS\Scheduler\Task\AbstractTask { * @return bool TRUE on successful execution, FALSE on error */ public function execute() { - $success = FALSE; if ((int)$this->storageUid > 0) { $storage = \TYPO3\CMS\Core\Resource\ResourceFactory::getInstance()->getStorageObject($this->storageUid); $storage->setEvaluatePermissions(FALSE); $indexer = $this->getIndexer($storage); - try { - $indexer->processChangesInStorages(); - $success = TRUE; - } catch (\Exception $e) { - $success = FALSE; - } + $indexer->processChangesInStorages(); $storage->setEvaluatePermissions(TRUE); } - return $success; + return TRUE; } /** @@ -58,5 +52,4 @@ class FileStorageIndexingTask extends \TYPO3\CMS\Scheduler\Task\AbstractTask { return \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Resource\Index\Indexer::class, $storage); } - }