Skip to content

Commit a4885c7

Browse files
committed
Remove NewClientWithEnvProxy
1 parent 232522b commit a4885c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

github/github.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ func (c *Client) copy() *Client {
468468
}
469469

470470
// NewClientWithEnvProxy enhances NewClient with the HttpProxy env.
471+
// Deprecated: Use NewClient(nil) instead.
471472
func NewClientWithEnvProxy() *Client {
472473
return NewClient(&http.Client{Transport: &http.Transport{Proxy: http.ProxyFromEnvironment}})
473474
}

0 commit comments

Comments
 (0)