Skip to content

Commit

Permalink
Skip sync if storage is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwindell authored Dec 15, 2021
1 parent 5d1f661 commit b135583
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Model/File/Storage/Synchronization.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ public function synchronize($relativeFileName)
{
/** @var $storage Bucket */
$storage = $this->storageFactory->create();

if (!$storage->getStorage()->isEnabled()) {
return;
}

try {
$storage->loadByFilename($relativeFileName);
} catch (\Exception $e) {
Expand Down

0 comments on commit b135583

Please sign in to comment.