From 04a51a7819942b8a47c3445fb435e200a17909d1 Mon Sep 17 00:00:00 2001 From: reesporte Date: Sat, 15 Jan 2022 12:25:09 -0600 Subject: [PATCH] remove shadowed ok thanks golangci-lint --- server/grpc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/grpc.go b/server/grpc.go index 3dc07f67f..f24823915 100644 --- a/server/grpc.go +++ b/server/grpc.go @@ -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], "; ")