diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-01-31 14:21:23 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-01-31 14:21:23 -0500 |
commit | 00a8545e7acad181e7ac83a2c6f97f6ba657748c (patch) | |
tree | b5eee244e6eec17227024d5164d39527e966b4a0 /internal/cvss/cvss.go | |
parent | 8153976a266d4ec42c9d3bb670c3bccd2de96d41 (diff) | |
download | cvez-00a8545e7acad181e7ac83a2c6f97f6ba657748c.tar.bz2 cvez-00a8545e7acad181e7ac83a2c6f97f6ba657748c.zip |
add internal/cvss/badkey.go
Diffstat (limited to 'internal/cvss/cvss.go')
-rw-r--r-- | internal/cvss/cvss.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/internal/cvss/cvss.go b/internal/cvss/cvss.go index 8fc6314..057a163 100644 --- a/internal/cvss/cvss.go +++ b/internal/cvss/cvss.go @@ -388,15 +388,15 @@ var v3KeyIds = map[string]v3Key { "MA": v3ModifiedAvailability, } -// Get metric key from string. -func getV3KeyFromString(s string) (v3Key, error) { - k, ok := v3KeyIds[s] - if ok { - return k, nil - } else { - return v3InvalidKey, fmt.Errorf("invalid metric key: %s", s) - } -} +// // Get metric key from string. +// func getV3KeyFromString(s string) (v3Key, error) { +// k, ok := v3KeyIds[s] +// if ok { +// return k, nil +// } else { +// return v3InvalidKey, newBadKey(V30, s) +// } +// } // Get metric key name. func (k v3Key) Name() string { |