projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27566b0
)
Fix bug introduced with gofmt cleanup yesterday.
author
Ward Vandewege <ward@curii.com>
Sun, 30 Aug 2020 12:03:19 +0000
(08:03 -0400)
committer
Ward 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
patch
|
blob
|
history
diff --git
a/lib/controller/rpc/conn.go
b/lib/controller/rpc/conn.go
index 6c332db077434e90b9165d403f6eeb20ae2562c1..cd98b64718a0b1f52702f4997f432d3d5210f353 100644
(file)
--- a/
lib/controller/rpc/conn.go
+++ b/
lib/controller/rpc/conn.go
@@
-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