From 0bdc72cb28f656528603913c690865755607fd94 Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Fri, 3 Jun 2022 17:00:58 +0300 Subject: [PATCH] [#161] Fix lint Signed-off-by: Denis Kirillov --- Makefile | 2 +- tokens/bearer-token.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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