diff options
Diffstat (limited to 'internal/cvss/v2key.go')
-rw-r--r-- | internal/cvss/v2key.go | 18 |
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 { |