Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
VinceMacBuche committed Jun 12, 2024
1 parent f05a06c commit 08ffcf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions gost/microsoft.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ func (ms Microsoft) DetectCVEs(r *models.ScanResult, _ bool) (nCVEs int, err err

for _, unap := range unapplied {
var superSed []string
superSed = nil
_, superSed, err = ms.driver.GetExpandKB(nil, []string{unap})
_, superSed, _ = ms.driver.GetExpandKB(nil, []string{unap})
for _, supers := range superSed {
supersedMap[supers] = append(supersedMap[supers], unap)
}
Expand Down
4 changes: 2 additions & 2 deletions oval/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type defPacks struct {

type fixStat struct {
notFixedYet bool
fixState string
fixState string
fixedIn string
isSrcPack bool
srcPackName string
Expand All @@ -56,7 +56,7 @@ func (e defPacks) toPackStatuses() (ps models.PackageFixStatuses) {
ps = append(ps, models.PackageFixStatus{
Name: name,
NotFixedYet: stat.notFixedYet,
FixState: stat.fixState,
FixState: stat.fixState,
FixedIn: stat.fixedIn,
VersionFound: stat.versionFound,
})
Expand Down

0 comments on commit 08ffcf3

Please sign in to comment.