Skip to content

Commit 8656bd9

Browse files
authored
fix: correct error mismatch causing race in fast walks (#5482)
1 parent 2e10cd2 commit 8656bd9

File tree

1 file changed

+1
-1
lines changed
  • pkg/fanal/artifact/local

1 file changed

+1
-1
lines changed

pkg/fanal/artifact/local/fs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func (a Artifact) Inspect(ctx context.Context) (types.ArtifactReference, error)
143143
dir, filePath = path.Split(a.rootPath)
144144
}
145145

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

0 commit comments

Comments
 (0)