Skip to content

Commit

Permalink
Merge pull request #812 from ga-devfront/fix/folder-deletion
Browse files Browse the repository at this point in the history
fix: remove unnecessary check before deleting files
  • Loading branch information
Quetzacoalt91 authored Jul 23, 2024
2 parents c4cbb28 + 28657cd commit a121f38
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions classes/Task/Upgrade/UpgradeFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,7 @@ public function upgradeThisFile($orig): bool

return true;
} elseif (is_dir($dest)) {
if (strpos($dest, DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR) === false) {
FilesystemAdapter::deleteDirectory($dest);
}
FilesystemAdapter::deleteDirectory($dest);
$this->logger->debug(sprintf('removed dir %1$s.', $file));

return true;
Expand Down

0 comments on commit a121f38

Please sign in to comment.