Skip to content

Commit

Permalink
Do not iterate over childrenIgnored paths
Browse files Browse the repository at this point in the history
Fix: #552
  • Loading branch information
isaacs committed Sep 20, 2023
1 parent ed22c06 commit 3e22cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ignore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class Ignore implements IgnoreLike {
if (m.match(relative)) return true
}
for (const m of this.absoluteChildren) {
if (m.match(fullpath)) true
if (m.match(fullpath)) return true
}
return false
}
Expand Down

0 comments on commit 3e22cf0

Please sign in to comment.