Skip to content

Commit

Permalink
Return nil error in Fraken
Browse files Browse the repository at this point in the history
Returning a non-nil value errors out too early
  • Loading branch information
Fryyyyy authored Jan 31, 2025
1 parent 81b16a6 commit 79d4675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/fraken/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ func filesystemScan(wait chan struct{}, c chan *Detection, minimumScore int) {
err := filepath.Walk(*scanPathFlag, func(filePath string, fileInfo os.FileInfo, err error) error {
if err != nil {
log.Printf("Error walking dir %v: %v\n", filePath, err)
return err
return nil
}
if !fileInfo.Mode().IsRegular() {
return nil
Expand Down

0 comments on commit 79d4675

Please sign in to comment.