Apply go fix -minmax ./...

This commit is contained in:
Michael Eischer
2026-07-22 22:25:56 +02:00
parent 0e4f288e83
commit 8ed263c6dd
4 changed files with 4 additions and 17 deletions
+1 -5
View File
@@ -131,11 +131,7 @@ func childMatch(pattern Pattern, strs []string) (matched bool, err error) {
// match path against absolute pattern prefix
l := 0
if len(strs) > len(pattern.parts) {
l = len(pattern.parts)
} else {
l = len(strs)
}
l = min(len(strs), len(pattern.parts))
return match(Pattern{pattern.original, pattern.parts[0:l], pattern.isNegated}, strs)
}