Skip to content

Commit

Permalink
incorporate PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
setchy committed Jul 4, 2023
1 parent 87389b7 commit 2a21441
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/util/package-rules/repository-patterns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,9 @@ export class RepositoryPatternsMatcher extends Matcher {
return false;
}

const reposToMatchAgainst = [repository];

let isMatch = false;
for (const repositoryPattern of matchRepositoryPatterns) {
if (
reposToMatchAgainst.some((repo) =>
isRepositoryMatch(repositoryPattern, repo)
)
) {
if (isRepositoryMatch(repositoryPattern, repository)) {
isMatch = true;
}
}
Expand Down

0 comments on commit 2a21441

Please sign in to comment.