Maintenance: use io instead of ioutil if possible

This commit is contained in:
Quentin McGaw (desktop)
2021-05-30 03:13:19 +00:00
parent 82d98c4859
commit be22c8547f
10 changed files with 22 additions and 22 deletions

View File

@@ -4,7 +4,7 @@ import (
"context"
"errors"
"fmt"
"io/ioutil"
"io"
"net/http"
)
@@ -31,7 +31,7 @@ func (u *unzipper) FetchAndExtract(ctx context.Context, url string) (
return nil, fmt.Errorf("%w: %s for %s", ErrHTTPStatusCodeNotOK, response.Status, url)
}
b, err := ioutil.ReadAll(response.Body)
b, err := io.ReadAll(response.Body)
if err != nil {
return nil, err
}