aboutsummaryrefslogtreecommitdiff
path: root/internal/cvss/v2key.go
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-01-31 14:21:23 -0500
committerPaul Duncan <pabs@pablotron.org>2022-01-31 14:21:23 -0500
commit00a8545e7acad181e7ac83a2c6f97f6ba657748c (patch)
treeb5eee244e6eec17227024d5164d39527e966b4a0 /internal/cvss/v2key.go
parent8153976a266d4ec42c9d3bb670c3bccd2de96d41 (diff)
downloadcvez-00a8545e7acad181e7ac83a2c6f97f6ba657748c.tar.bz2
cvez-00a8545e7acad181e7ac83a2c6f97f6ba657748c.zip
add internal/cvss/badkey.go
Diffstat (limited to 'internal/cvss/v2key.go')
-rw-r--r--internal/cvss/v2key.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/internal/cvss/v2key.go b/internal/cvss/v2key.go
index ae976be..8a7996c 100644
--- a/internal/cvss/v2key.go
+++ b/internal/cvss/v2key.go
@@ -64,15 +64,15 @@ var v2KeyIds = map[string]v2Key {
"AR": v2AvailabilityRequirement,
}
-// Get metric key from string.
-func getV2KeyFromString(s string) (v2Key, error) {
- k, ok := v2KeyIds[s]
- if ok {
- return k, nil
- } else {
- return v2InvalidKey, fmt.Errorf("invalid metric key: %s", s)
- }
-}
+// // Get metric key from string.
+// func getV2KeyFromString(s string) (v2Key, error) {
+// k, ok := v2KeyIds[s]
+// if ok {
+// return k, nil
+// } else {
+// return v2InvalidKey, newBadKey(V20, s)
+// }
+// }
// Get metric key name.
func (k v2Key) Name() string {