From: Ward Vandewege Date: Fri, 2 Apr 2021 23:36:37 +0000 (-0400) Subject: Fix golint warning. X-Git-Tag: 2.2.0~78 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/182304c41e0db4b8a28039b8267798f69cb504e2 Fix golint warning. No issue # Arvados-DCO-1.1-Signed-off-by: Ward Vandewege --- diff --git a/services/arv-git-httpd/auth_handler.go b/services/arv-git-httpd/auth_handler.go index fa03756301..13706ae3e8 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 if a password is given, else an empty string. passwordToLog := "" - if !validApiToken { + if !validAPIToken { if len(apiToken) > 0 { passwordToLog = "" } @@ -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