fix(detector/ospkg): Skip OVAL/gost search when the number of packages is 0 (#1343)

* fix(detector/ospkg): Skip OVAL/gost search when the number of packages is 0

* chore: easy refactoring
This commit is contained in:
MaineK00n
2021-12-26 07:53:18 +09:00
committed by GitHub
parent 24005ae7ae
commit 6bc4850596
3 changed files with 16 additions and 16 deletions

View File

@@ -26,10 +26,7 @@ func reuseScannedCves(r *models.ScanResult) bool {
case constant.FreeBSD, constant.Raspbian:
return true
}
if isTrivyResult(r) {
return true
}
return false
return isTrivyResult(r)
}
func isTrivyResult(r *models.ScanResult) bool {