Skip to content

Commit 5857a0a

Browse files
Replace ioutil with io instead
1 parent 79354df commit 5857a0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ia.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"encoding/json"
66
"fmt"
7-
"io/ioutil"
7+
"io"
88
"net/http"
99
"net/url"
1010
"os"
@@ -133,7 +133,7 @@ func (wbrc *Archiver) latest(_ context.Context, u *url.URL) (string, error) {
133133
}
134134
defer resp.Body.Close()
135135

136-
data, err := ioutil.ReadAll(resp.Body)
136+
data, err := io.ReadAll(resp.Body)
137137
if err != nil {
138138
return "", err
139139
}

0 commit comments

Comments
 (0)