Skip to content

Commit

Permalink
fix: correct error mismatch causing race in fast walks
Browse files Browse the repository at this point in the history
  • Loading branch information
lebauce committed Nov 5, 2023
1 parent fdb3a15 commit 904ed24
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 @@ -154,7 +154,7 @@ func (a Artifact) Inspect(ctx context.Context) (types.ArtifactReference, error)
}

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

Expand Down

0 comments on commit 904ed24

Please sign in to comment.