From 6b80bfb7889444cdb9ab07dcd5fe2fcb2000ce8e Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 31 Jan 2022 22:13:31 -0500 Subject: internal/cvss/category.go: add InvalidCategory --- internal/cvss/category.go | 1 + internal/cvss/category_string.go | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/cvss/category.go b/internal/cvss/category.go index b6e0b37..54781dc 100644 --- a/internal/cvss/category.go +++ b/internal/cvss/category.go @@ -9,4 +9,5 @@ const ( Base Category = iota // Base Temporal // Temporal Environmental // Environmental + InvalidCategory // invalid ) diff --git a/internal/cvss/category_string.go b/internal/cvss/category_string.go index 82a4868..782f8fb 100644 --- a/internal/cvss/category_string.go +++ b/internal/cvss/category_string.go @@ -11,11 +11,12 @@ func _() { _ = x[Base-0] _ = x[Temporal-1] _ = x[Environmental-2] + _ = x[InvalidCategory-3] } -const _Category_name = "BaseTemporalEnvironmental" +const _Category_name = "BaseTemporalEnvironmentalinvalid" -var _Category_index = [...]uint8{0, 4, 12, 25} +var _Category_index = [...]uint8{0, 4, 12, 25, 32} func (i Category) String() string { if i >= Category(len(_Category_index)-1) { -- cgit v1.2.3