Skip to content

Commit

Permalink
Add some additional comments
Browse files Browse the repository at this point in the history
  • Loading branch information
another-rex committed Mar 2, 2023
1 parent 17931e3 commit 41d657a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clients/osv.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ func (v osvClient) ListUnfixedVulnerabilities(
}, nil) // TODO: Do logging?

response := VulnerabilitiesResponse{}
if err == nil {

if err == nil { // No vulns found
return response, nil
}

// If vulnerabilities are found, err will be set to osvscanner.VulnerabilitiesFoundErr
if errors.Is(err, osvscanner.VulnerabilitiesFoundErr) {
vulns := res.Flatten()
for i := range vulns {
Expand Down

0 comments on commit 41d657a

Please sign in to comment.