ext: remove unneeded use of init()

This commit is contained in:
Jimmy Zelinskie 2018-10-18 18:48:07 -04:00 committed by Kate Murphy
parent 699d1143e5
commit 8efc3e4038

View File

@ -74,7 +74,25 @@ type nvdCVSSv3 struct {
AvailImpact string `json:"availabilityImpact"`
}
var vectorValuesToLetters map[string]string
var vectorValuesToLetters = map[string]string{
"NETWORK": "N",
"ADJACENT_NETWORK": "A",
"LOCAL": "L",
"HIGH": "H",
"MEDIUM": "M",
"LOW": "L",
"NONE": "N",
"SINGLE": "S",
"MULTIPLE": "M",
"PARTIAL": "P",
"COMPLETE": "C",
// CVSSv3 only
"PHYSICAL": "P",
"REQUIRED": "R",
"CHANGED": "C",
"UNCHANGED": "U",
}
func init() {
vectorValuesToLetters = make(map[string]string)