Skip to content

Commit ac0a979

Browse files
committed
fix lint
1 parent 667d6cf commit ac0a979

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vulnfeeds/cmd/cvelist2osv/version_extraction.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ func AddVersionInfo(cve cves.CVE5, v *vulns.Vulnerability, repos []string) ([]Ve
138138
}
139139

140140
v.Affected = append(v.Affected, aff)
141-
source = append(source, VersionSourceAffected)
142-
141+
source = append(source, VersionSourceAffected) //nolint:prealloc
143142
}
144143

145144
// If no versions were found so far, fall back to CPEs.

0 commit comments

Comments
 (0)