forked from TrueCloudLab/frostfs-http-gw
parent
97cde6e262
commit
0bdc72cb28
2 changed files with 1 additions and 3 deletions
2
Makefile
2
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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue