remove shadowed ok

thanks golangci-lint
This commit is contained in:
reesporte 2022-01-15 12:25:09 -06:00
parent 50f9b0d1b6
commit 04a51a7819

View file

@ -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], "; ")