Skip to content

Commit c084ea7

Browse files
authored
Return nil error in Fraken (#1580)
Returning a non-nil value errors out too early
1 parent 81b16a6 commit c084ea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/fraken/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ func filesystemScan(wait chan struct{}, c chan *Detection, minimumScore int) {
353353
err := filepath.Walk(*scanPathFlag, func(filePath string, fileInfo os.FileInfo, err error) error {
354354
if err != nil {
355355
log.Printf("Error walking dir %v: %v\n", filePath, err)
356-
return err
356+
return nil
357357
}
358358
if !fileInfo.Mode().IsRegular() {
359359
return nil

0 commit comments

Comments
 (0)