Skip to content

Commit

Permalink
fix: correct error mismatch causing race in fast walks (#5482)
Browse files Browse the repository at this point in the history
  • Loading branch information
lebauce authored Nov 2, 2023
1 parent 2e10cd2 commit 8656bd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/fanal/artifact/local/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (a Artifact) Inspect(ctx context.Context) (types.ArtifactReference, error)
dir, filePath = path.Split(a.rootPath)
}

if err = a.analyzer.AnalyzeFile(ctx, &wg, limit, result, dir, filePath, info, opener, nil, opts); err != nil {
if err := a.analyzer.AnalyzeFile(ctx, &wg, limit, result, dir, filePath, info, opener, nil, opts); err != nil {
return xerrors.Errorf("analyze file (%s): %w", filePath, err)
}

Expand Down

0 comments on commit 8656bd9

Please sign in to comment.