Skip to content

Commit 73bfbab

Browse files
idsulikglours
authored andcommitted
fix
Signed-off-by: Suleiman Dibirov <[email protected]>
1 parent 2ac081b commit 73bfbab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/watch/dockerignore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func NewDockerPatternMatcher(repoRoot string, patterns []string) (*dockerPathMat
134134
if hasAllPattern {
135135
// Remove all non-exclusion patterns (those that don't start with '!')
136136
patterns = slices.DeleteFunc(patterns, func(p string) bool {
137-
return len(p) > 0 && p[0] != '!' // Only keep exclusion patterns
137+
return p != "" && p[0] != '!' // Only keep exclusion patterns
138138
})
139139
}
140140

0 commit comments

Comments
 (0)