From bdffa373cff4fa764d04e70860773680e9a1db7e Mon Sep 17 00:00:00 2001 From: mzack Date: Thu, 18 Nov 2021 21:54:24 +0100 Subject: [PATCH] solving linting issues --- v2/pkg/protocols/http/signature.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/v2/pkg/protocols/http/signature.go b/v2/pkg/protocols/http/signature.go index 83f4a7d5..cf01f1e7 100644 --- a/v2/pkg/protocols/http/signature.go +++ b/v2/pkg/protocols/http/signature.go @@ -2,7 +2,6 @@ package http import ( "encoding/json" - "strings" "github.com/alecthomas/jsonschema" "github.com/pkg/errors" @@ -14,7 +13,7 @@ type SignatureType int // Supported values for the SignatureType const ( AWSSignature SignatureType = iota + 1 - limit + signatureLimit ) // signatureTypeMappings is a table for conversion of signature type from string. @@ -24,7 +23,7 @@ var signatureTypeMappings = map[SignatureType]string{ func GetSupportedSignaturesTypes() []SignatureType { var result []SignatureType - for index := SignatureType(1); index < limit; index++ { + for index := SignatureType(1); index < signatureLimit; index++ { result = append(result, index) } return result @@ -40,10 +39,6 @@ func toSignatureType(valueToMap string) (SignatureType, error) { return -1, errors.New("invalid signature type: " + valueToMap) } -func normalizeValue(value string) string { - return strings.TrimSpace(strings.ToLower(value)) -} - func (t SignatureType) String() string { return signatureTypeMappings[t] }