[ARVADOS] updated: 1.3.0-3039-g5ce6d49b5

Git user git at public.arvados.org
Sun Aug 30 12:03:39 UTC 2020


Summary of changes:
 lib/controller/rpc/conn.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

       via  5ce6d49b5a632b8e846fb0d794444ecd39f74fa5 (commit)
      from  27566b089a00a4038fceb320175b37fcb0e77033 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 5ce6d49b5a632b8e846fb0d794444ecd39f74fa5
Author: Ward Vandewege <ward at curii.com>
Date:   Sun Aug 30 08:03:19 2020 -0400

    Fix bug introduced with gofmt cleanup yesterday.
    
    No issue #
    
    Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward at curii.com>

diff --git a/lib/controller/rpc/conn.go b/lib/controller/rpc/conn.go
index 6c332db07..cd98b6471 100644
--- 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

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list