Skip to content

Commit b9909a7

Browse files
committed
wrong place
1 parent ac0a979 commit b9909a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vulnfeeds/cmd/cvelist2osv/version_extraction.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func toVersionRangeType(s string) VersionRangeType {
7676
// It returns the source of the version information and a slice of notes detailing the extraction process.
7777
func AddVersionInfo(cve cves.CVE5, v *vulns.Vulnerability, repos []string) ([]VersionSource, []string) {
7878
var notes []string
79-
var source []VersionSource
79+
var source []VersionSource //nolint:prealloc
8080
gotVersions := false
8181

8282
// Combine 'affected' entries from both CNA and ADP containers.
@@ -138,7 +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) //nolint:prealloc
141+
source = append(source, VersionSourceAffected)
142142
}
143143

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

0 commit comments

Comments
 (0)