From a1373cfcd291e4f2d454966464f91cf87d75214e Mon Sep 17 00:00:00 2001 From: Houssem Ben Mabrouk Date: Fri, 22 Mar 2024 11:42:05 +0100 Subject: [PATCH] fix lint? Signed-off-by: Houssem Ben Mabrouk --- connector/oidc/oidc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connector/oidc/oidc.go b/connector/oidc/oidc.go index 1ec1bb989e..59ee3f90da 100644 --- a/connector/oidc/oidc.go +++ b/connector/oidc/oidc.go @@ -329,7 +329,7 @@ func (c *oidcConnector) HandleCallback(s connector.Scopes, r *http.Request) (ide } ctx := context.WithValue(r.Context(), oauth2.HTTPClient, c.httpClient) - token := &oauth2.Token{} + var token *oauth2.Token if q.Has("code") { // exchange code to token var opts []oauth2.AuthCodeOption