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

@@ -309,7 +309,6 @@ func (r ScanResult) RemoveRaspbianPackFromResult() *ScanResult {
for _, pack := range r.SrcPackages {
if !IsRaspbianPackage(pack.Name, pack.Version) {
srcPacks[pack.Name] = pack
}
}