aboutsummaryrefslogtreecommitdiff
path: root/internal/cvss/badkey.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/cvss/badkey.go')
-rw-r--r--internal/cvss/badkey.go35
1 files changed, 18 insertions, 17 deletions
diff --git a/internal/cvss/badkey.go b/internal/cvss/badkey.go
index 5078074..d4bc845 100644
--- a/internal/cvss/badkey.go
+++ b/internal/cvss/badkey.go
@@ -1,19 +1,20 @@
package cvss
-import "fmt"
-
-// Bad metric key error.
-type badKey struct {
- version Version
- key string
-}
-
-// Create new bad key error.
-func newBadKey(version Version, key string) error {
- return &badKey { version, key }
-}
-
-// Return printable error string
-func (e badKey) Error() string {
- return fmt.Sprintf("invalid CVSS %s metric key: %s", e.version, e.key)
-}
+// disabled for now (unused)
+// import "fmt"
+//
+// // Bad metric key error.
+// type badKey struct {
+// version Version
+// key string
+// }
+//
+// // Create new bad key error.
+// func newBadKey(version Version, key string) error {
+// return &badKey { version, key }
+// }
+//
+// // Return printable error string
+// func (e badKey) Error() string {
+// return fmt.Sprintf("invalid CVSS %s metric key: %s", e.version, e.key)
+// }