Skip to content

Commit f5d16ea

Browse files
chore: remove initial call
the initial call duplicates work done in Walk
1 parent a56c827 commit f5d16ea

File tree

1 file changed

+1
-1
lines changed
  • agent/agentcontainers/ignore

1 file changed

+1
-1
lines changed

agent/agentcontainers/ignore/dir.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func readIgnoreFile(fileSystem afero.Fs, path string) ([]gitignore.Pattern, erro
4545
}
4646

4747
func ReadPatterns(fileSystem afero.Fs, path string) ([]gitignore.Pattern, error) {
48-
ps, _ := readIgnoreFile(fileSystem, path)
48+
var ps []gitignore.Pattern
4949

5050
if err := afero.Walk(fileSystem, path, func(path string, info fs.FileInfo, _ error) error {
5151
if !info.IsDir() {

0 commit comments

Comments
 (0)