Add gosimple linter (#23250)

#23249

Add gosimple linter to golangci-lint CI job.
This commit is contained in:
Victor Lyuboslavsky
2024-10-29 14:17:51 -05:00
committed by GitHub
parent 6f6ecf010d
commit e2d9a9016c
57 changed files with 115 additions and 162 deletions
+1 -3
View File
@@ -77,9 +77,7 @@ func Analyze(
return nil, err
}
var existing []fleet.OSVulnerability
for _, osv := range osVulns {
existing = append(existing, osv)
}
existing = append(existing, osVulns...)
// Compute what needs to be inserted/deleted for this batch
insrt, del := utils.VulnsDelta(found, existing)