Skip to content

Commit

Permalink
always return remaining and ignroed matches from matcher object
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Goodman <[email protected]>
  • Loading branch information
wagoodman committed Sep 12, 2023
1 parent 1fe33ed commit 68e10ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grype/vulnerability_matcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ func (m *VulnerabilityMatcher) FindMatches(pkgs []pkg.Package, context pkg.Conte

remainingMatches, ignoredMatches, err := m.findDBMatches(pkgs, context, progressMonitor)
if err != nil {
return nil, nil, fmt.Errorf("unable to find matches against DB: %w", err)
return remainingMatches, ignoredMatches, err
}

remainingMatches, ignoredMatches, err = m.findVEXMatches(context, remainingMatches, ignoredMatches, progressMonitor)
if err != nil {
return nil, nil, fmt.Errorf("unable to find matches against VEX sources: %w", err)
return remainingMatches, ignoredMatches, fmt.Errorf("unable to find matches against VEX sources: %w", err)
}

logListSummary(progressMonitor)
Expand Down

0 comments on commit 68e10ef

Please sign in to comment.