Fixing CVE annotate crash

dev
mzack 2021-12-20 12:17:04 +01:00
parent 8e62abe6e7
commit d27239e953
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ func getCVEData(client *nvd.Client, filePath, data string) {
cveName := matches[0][1] cveName := matches[0][1]
severityMatches := severityRegex.FindAllStringSubmatch(data, 1) severityMatches := severityRegex.FindAllStringSubmatch(data, 1)
if len(matches) == 0 { if len(severityMatches) == 0 {
return return
} }
severityValue := severityMatches[0][1] severityValue := severityMatches[0][1]