From 5b66bf05c8a4a44e504d1021b8e9ba1926dc4329 Mon Sep 17 00:00:00 2001 From: Andy Lindeman Date: Thu, 27 Jun 2019 19:12:18 -0400 Subject: [PATCH] Fixed shadowed variable declaration --- server/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/handlers.go b/server/handlers.go index 7f942391..e7e15c27 100644 --- a/server/handlers.go +++ b/server/handlers.go @@ -600,7 +600,7 @@ func (s *Server) sendCodeResponse(w http.ResponseWriter, r *http.Request, authRe implicitOrHybrid = true var err error - accessToken, err := s.newAccessToken(authReq.ClientID, authReq.Claims, authReq.Scopes, authReq.Nonce, authReq.ConnectorID) + accessToken, err = s.newAccessToken(authReq.ClientID, authReq.Claims, authReq.Scopes, authReq.Nonce, authReq.ConnectorID) if err != nil { s.logger.Errorf("failed to create new access token: %v", err) s.tokenErrHelper(w, errServerError, "", http.StatusInternalServerError)