remotefile: Use io.ReadAll not ioutil.ReadAll

This commit is contained in:
Brian C. Lane 2023-03-21 08:23:04 -07:00 committed by Brian C. Lane
parent 2040e93e56
commit c6a8d89da6

View file

@ -2,7 +2,7 @@ package remotefile
import (
"fmt"
"io/ioutil"
"io"
"net/http"
"net/url"
)
@ -29,7 +29,7 @@ func (c *Client) makeRequest(u *url.URL) ([]byte, error) {
}
defer resp.Body.Close()
output, err := ioutil.ReadAll(resp.Body)
output, err := io.ReadAll(resp.Body)
if err != nil {
return nil, err
}