[ARVADOS] updated: 2.1.0-622-g182304c41

Git user git at public.arvados.org
Fri Apr 2 23:36:52 UTC 2021


Summary of changes:
 services/arv-git-httpd/auth_handler.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

       via  182304c41e0db4b8a28039b8267798f69cb504e2 (commit)
      from  62b8ef851540106af34d6f5f432e794052355a15 (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 182304c41e0db4b8a28039b8267798f69cb504e2
Author: Ward Vandewege <ward at curii.com>
Date:   Fri Apr 2 19:36:37 2021 -0400

    Fix golint warning.
    
    No issue #
    
    Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward at curii.com>

diff --git a/services/arv-git-httpd/auth_handler.go b/services/arv-git-httpd/auth_handler.go
index fa0375630..13706ae3e 100644
--- a/services/arv-git-httpd/auth_handler.go
+++ b/services/arv-git-httpd/auth_handler.go
@@ -48,7 +48,7 @@ func (h *authHandler) ServeHTTP(wOrig http.ResponseWriter, r *http.Request) {
 	var statusText string
 	var apiToken string
 	var repoName string
-	var validApiToken bool
+	var validAPIToken bool
 
 	w := httpserver.WrapResponseWriter(wOrig)
 
@@ -88,7 +88,7 @@ func (h *authHandler) ServeHTTP(wOrig http.ResponseWriter, r *http.Request) {
 		// If the given password is a valid token, log the first 10 characters of the token.
 		// Otherwise: log the string <invalid> if a password is given, else an empty string.
 		passwordToLog := ""
-		if !validApiToken {
+		if !validAPIToken {
 			if len(apiToken) > 0 {
 				passwordToLog = "<invalid>"
 			}
@@ -133,7 +133,7 @@ func (h *authHandler) ServeHTTP(wOrig http.ResponseWriter, r *http.Request) {
 		statusCode, statusText = http.StatusInternalServerError, err.Error()
 		return
 	}
-	validApiToken = true
+	validAPIToken = true
 	if repoUUID == "" {
 		statusCode, statusText = http.StatusNotFound, "not found"
 		return

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list