Skip to content

Commit 5d7ddf0

Browse files
committed
[exclude] cleanup
1 parent 0228f7f commit 5d7ddf0

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

internal/exclude/matcher.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ func New(rules []string, sourceRoot string) (*Matcher, error) {
3232
return nil, fmt.Errorf("%w: exclude rule %q is invalid", ErrInvalidPattern, raw)
3333
}
3434

35-
// if strings.HasPrefix(normalized, "**") {
36-
// normalized = "/" + normalized
37-
// }
38-
3935
compiled = append(compiled, rule{
4036
value: normalized,
4137
isPattern: hasMeta(normalized),
@@ -62,9 +58,6 @@ func (m *Matcher) MatchRule(filePath string) (bool, string) {
6258
}
6359
normalized := path.Clean(filepath.ToSlash(candidate))
6460

65-
// log.Printf("Normalizing %s to %s", filePath, normalized)
66-
// log.Printf("Matching %s against %v", normalized, m.rules)
67-
6861
for _, r := range m.rules {
6962
if !r.isPattern {
7063
if normalized == r.value || strings.HasPrefix(normalized, r.value+"/") {

0 commit comments

Comments
 (0)