Skip to content

Commit fed4710

Browse files
authored
fix: correct error mismatch causing race in fast walks (#5516)
1 parent 46f1b9e commit fed4710

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
@@ -154,7 +154,7 @@ func (a Artifact) Inspect(ctx context.Context) (types.ArtifactReference, error)
154154
}
155155

156156
// Build filesystem for post analysis
157-
if err = composite.CreateLink(analyzerTypes, dir, filePath, filepath.Join(dir, filePath)); err != nil {
157+
if err := composite.CreateLink(analyzerTypes, dir, filePath, filepath.Join(dir, filePath)); err != nil {
158158
return xerrors.Errorf("failed to create link: %w", err)
159159
}
160160

0 commit comments

Comments
 (0)