Skip to content

Commit

Permalink
feat: remove unnecessary check artifact before deleting files
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-devfront committed Jul 18, 2024
1 parent ad67877 commit 28657cd
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 28657cd

Please sign in to comment.