diff --git a/Makefile b/Makefile index f152056..594ae55 100644 --- a/Makefile +++ b/Makefile @@ -97,7 +97,7 @@ docker/lint: -v `pwd`:/src \ -u `stat -c "%u:%g" .` \ --env HOME=/src \ - golangci/golangci-lint:v1.39 bash -c 'cd /src/ && make lint' + golangci/golangci-lint:v1.46.2 bash -c 'cd /src/ && make lint' # Print version version: diff --git a/tokens/bearer-token.go b/tokens/bearer-token.go index 672138d..cf7dc45 100644 --- a/tokens/bearer-token.go +++ b/tokens/bearer-token.go @@ -89,8 +89,6 @@ func fetchBearerToken(ctx *fasthttp.RequestCtx) (*bearer.Token, error) { } else if err = tkn.Unmarshal(data); err != nil { lastErr = fmt.Errorf("can't unmarshal bearer token: %w", err) continue - } else if tkn == nil { - continue } return tkn, nil