Skip to content

Commit

Permalink
Add some additional comments
Browse files Browse the repository at this point in the history
Signed-off-by: Rex Pan <rexpan@google.com>
  • Loading branch information
another-rex authored and spencerschrock committed Mar 8, 2023
1 parent 63b3531 commit f23a9dd
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 f23a9dd

Please sign in to comment.