From 1bc55f3e1d7f2f9c888bb76525fc6cb7bf0c8b2d Mon Sep 17 00:00:00 2001 From: Eguzki Astiz Lezaun Date: Thu, 16 Nov 2023 15:46:19 +0100 Subject: [PATCH] fix lint issue --- pkg/kuadrantapi/authpolicy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kuadrantapi/authpolicy.go b/pkg/kuadrantapi/authpolicy.go index 4dc84a5..23df49a 100644 --- a/pkg/kuadrantapi/authpolicy.go +++ b/pkg/kuadrantapi/authpolicy.go @@ -92,7 +92,7 @@ func AuthPolicyAuthenticationSchemeFromOAS(doc *openapi3.T) map[string]kuadranta func findOIDCSecuritySchemesFromRequirements(doc *openapi3.T, secRequirements openapi3.SecurityRequirements) *openapi3.SecurityScheme { for _, secReq := range secRequirements { - for secReqItemName, _ := range secReq { + for secReqItemName := range secReq { secScheme, ok := doc.Components.SecuritySchemes[secReqItemName] if !ok { // should never happen. OpenAPI validation should detect this issue