Skip to content

Commit

Permalink
Merge pull request #29 from vulncheck-oss/bug-nil-vulns
Browse files Browse the repository at this point in the history
πŸ› fix a nil vulns value
  • Loading branch information
acidjazz authored May 15, 2024
2 parents c95e884 + 38a9e44 commit 6042249
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/cmd/scan/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ func Command() *cobra.Command {
return err
}

if *vulns == nil || vulns == nil {
ui.Info(fmt.Sprintf(i18n.C.ScanNoCvesFound, len(purls)))
}

if len(*vulns) == 0 {
ui.Info(fmt.Sprintf(i18n.C.ScanNoCvesFound, len(purls)))
}
Expand Down

0 comments on commit 6042249

Please sign in to comment.