mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-08 20:07:51 +00:00
remove shadowed ok
thanks golangci-lint
This commit is contained in:
parent
50f9b0d1b6
commit
04a51a7819
1 changed files with 2 additions and 2 deletions
|
|
@ -1624,8 +1624,8 @@ func Valid(ctx context.Context, method string, auth *authn.Auth, req interface{}
|
|||
|
||||
authorization, ok := md["authorization"]
|
||||
if !ok {
|
||||
c, ok := md["cookie"]
|
||||
if !ok {
|
||||
c, there := md["cookie"]
|
||||
if !there {
|
||||
return ctx, status.Errorf(codes.InvalidArgument, "missing authorization token")
|
||||
}
|
||||
cookies := strings.Split(c[0], "; ")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue