Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2022-06-03 17:00:58 +03:00 committed by Alex Vanin
parent 97cde6e262
commit 0bdc72cb28
2 changed files with 1 additions and 3 deletions

View file

@ -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:

View file

@ -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