Skip to content

Commit

Permalink
fix: deprecate ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
SputNikPlop authored May 6, 2024
1 parent bdd8724 commit e86910f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helix.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"io"
"log"
"net/http"
"reflect"
Expand Down Expand Up @@ -364,7 +364,7 @@ func (c *Client) doRequest(req *http.Request, resp *Response) error {

setResponseStatusCode(resp, "StatusCode", response.StatusCode)

bodyBytes, err := ioutil.ReadAll(response.Body)
bodyBytes, err := io.ReadAll(response.Body)
if err != nil {
return err
}
Expand Down

0 comments on commit e86910f

Please sign in to comment.