Skip to content

Commit 9511d86

Browse files
committed
Return Error Only If There Are No Paths Found
1 parent d0c1262 commit 9511d86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func FindFiles(dir string) *Pipe {
102102
}
103103
return nil
104104
})
105-
if err != nil {
105+
if err != nil && len(paths) == 0 {
106106
return NewPipe().WithError(err)
107107
}
108108
return Slice(paths)

0 commit comments

Comments
 (0)