Skip to content

Commit 2278b9b

Browse files
authored
Remove duplicate code (#331)
1 parent cf2414d commit 2278b9b

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/Install/GuidelineComposer.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -181,16 +181,6 @@ protected function find(): Collection
181181
$guidelines->put('.ai/'.$guideline['name'], $guideline);
182182
}
183183

184-
$pathsUsed = $guidelines->pluck('path');
185-
186-
foreach ($userGuidelines as $guideline) {
187-
if ($pathsUsed->contains($guideline['path'])) {
188-
continue; // Don't include this twice if it's an override
189-
}
190-
191-
$guidelines->put('.ai/'.$guideline['name'], $guideline);
192-
}
193-
194184
collect(Composer::packagesDirectoriesWithBoostGuidelines())
195185
->each(function (string $path, string $package) use ($guidelines): void {
196186
$packageGuidelines = $this->guidelinesDir($path, true);

0 commit comments

Comments
 (0)