Merge pull request #45949 from thaJeztah/rename_var

testutil: rename variable that collided with import
This commit is contained in:
Bjorn Neergaard 2023-07-13 07:01:47 -06:00 committed by GitHub
commit f2c0df5cd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,11 +86,11 @@ func Do(endpoint string, modifiers ...func(*Options)) (*http.Response, io.ReadCl
if err != nil {
return nil, nil, err
}
client, err := newHTTPClient(opts.host)
httpClient, err := newHTTPClient(opts.host)
if err != nil {
return nil, nil, err
}
resp, err := client.Do(req)
resp, err := httpClient.Do(req)
var body io.ReadCloser
if resp != nil {
body = ioutils.NewReadCloserWrapper(resp.Body, func() error {