Skip to content

Commit

Permalink
Fixed typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Sep 20, 2017
1 parent 481766f commit 9112acb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ArtefactTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,7 @@ protected function removeSubRepos($path)
$dirs = glob($path.DIRECTORY_SEPARATOR.'.git', GLOB_ONLYDIR);
if (!empty($dirs)) {
// Make sure that current repo's .git dir is not removed.
$dirs = array_diff($dirs, [
$path.DIRECTORY_SEPARATOR.'.git',
$dirs,
]);
$dirs = array_diff($dirs, [$path.DIRECTORY_SEPARATOR.'.git']);
$this->fsFileSystem->remove($dirs);
}
}
Expand Down

0 comments on commit 9112acb

Please sign in to comment.