Fix bug introduced with gofmt cleanup yesterday.
authorWard Vandewege <ward@curii.com>
Sun, 30 Aug 2020 12:03:19 +0000 (08:03 -0400)
committerWard Vandewege <ward@curii.com>
Sun, 30 Aug 2020 12:03:19 +0000 (08:03 -0400)
No issue #

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>

lib/controller/rpc/conn.go

index 6c332db077434e90b9165d403f6eeb20ae2562c1..cd98b64718a0b1f52702f4997f432d3d5210f353 100644 (file)
@@ -26,7 +26,8 @@ import (
 type TokenProvider func(context.Context) ([]string, error)
 
 func PassthroughTokenProvider(ctx context.Context) ([]string, error) {
-       if incoming, ok := auth.FromContext(ctx); !ok {
+       incoming, ok := auth.FromContext(ctx)
+       if !ok {
                return nil, errors.New("no token provided")
        }
        return incoming.Tokens, nil