From 066f850043d576e6212a96b5015e9b14b7f4e2b6 Mon Sep 17 00:00:00 2001 From: Christian Banse Date: Sat, 27 Aug 2022 12:59:15 +0200 Subject: [PATCH] Fixed linting errors --- map_claims.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/map_claims.go b/map_claims.go index dd7c59e..d7b0830 100644 --- a/map_claims.go +++ b/map_claims.go @@ -56,23 +56,23 @@ func (m MapClaims) ParseNumericDate(key string) *NumericDate { } func (m MapClaims) ParseClaimsString(key string) ClaimStrings { - var aud []string + var cs []string switch v := m[key].(type) { case string: - aud = append(aud, v) + cs = append(cs, v) case []string: - aud = v + cs = v case []interface{}: for _, a := range v { vs, ok := a.(string) if !ok { return nil } - aud = append(aud, vs) + cs = append(cs, vs) } } - return nil + return cs } func (m MapClaims) ParseString(key string) string {