Skip to content

Commit

Permalink
Correct NewEnterpriseClient deprecation message (google#2923)
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald authored and gmlewis committed Sep 18, 2023
1 parent 73da247 commit d9b988b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ func NewTokenClient(_ context.Context, token string) *Client {
// NewEnterpriseClient returns a new GitHub API client with provided
// base URL and upload URL (often is your GitHub Enterprise hostname).
//
// Deprecated: Use NewClient(httpClient).WithOptions(WithEnterpriseURLs(baseURL, uploadURL)) instead.
// Deprecated: Use NewClient(httpClient).WithEnterpriseURLs(baseURL, uploadURL) instead.
func NewEnterpriseClient(baseURL, uploadURL string, httpClient *http.Client) (*Client, error) {
return NewClient(httpClient).WithEnterpriseURLs(baseURL, uploadURL)
}
Expand Down

0 comments on commit d9b988b

Please sign in to comment.