Skip to content

Commit ef34f6f

Browse files
authored
chore: remove refs to deprecated io/ioutil (#26)
1 parent 83684df commit ef34f6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data/http.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package data
22

33
import (
4-
"io/ioutil"
4+
"io"
55
"net/http"
66
"time"
77

@@ -53,7 +53,7 @@ func (h httpSource) fetch(url string) {
5353
return
5454
}
5555
defer resp.Body.Close()
56-
b, err := ioutil.ReadAll(resp.Body)
56+
b, err := io.ReadAll(resp.Body)
5757
if err != nil {
5858
h.c <- res{err: err}
5959
return

0 commit comments

Comments
 (0)