Skip to content

Commit

Permalink
add code review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
edmarSoaress committed Feb 16, 2024
1 parent ee39704 commit 645c804
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/oauth/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (c *client) GetAuthorizationURL(clientID, redirectURI, state string) string
"redirect_uri": redirectURI,
}

host, err := url.Parse(urlAuth)
parsedURL, err := url.Parse(urlAuth)
if err != nil {
return ""
}
Expand All @@ -77,9 +77,9 @@ func (c *client) GetAuthorizationURL(clientID, redirectURI, state string) string
queryParams.Add(k, v)
}

host.RawQuery = queryParams.Encode()
parsedURL.RawQuery = queryParams.Encode()

return host.String()
return parsedURL.String()
}

func (c *client) Refresh(ctx context.Context, refreshToken string) (*Response, error) {
Expand Down

0 comments on commit 645c804

Please sign in to comment.