Skip to content

Commit e687584

Browse files
author
iqquee
committed
ioutil package changed to io
1 parent 25880a5 commit e687584

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

urlbox.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"encoding/json"
66
"fmt"
77
"io"
8-
"io/ioutil"
98
"net/http"
109

1110
"github.com/pkg/errors"
@@ -90,7 +89,7 @@ func (c *Client) newRequest(method, reqURL string, reqBody interface{}) ([]byte,
9089

9190
defer res.Body.Close()
9291

93-
b, err := ioutil.ReadAll(res.Body)
92+
b, err := io.ReadAll(res.Body)
9493
if err != nil {
9594
return nil, 0, errors.Wrap(err, "http client ::: client failed to read file")
9695
}

0 commit comments

Comments
 (0)