Skip to content

Commit

Permalink
using io import instead of ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
cyruzin committed Nov 16, 2023
1 parent 2d0e588 commit c820888
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tmdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"context"
"errors"
"fmt"
"io/ioutil"
"io"
"net/http"
"net/url"
"strconv"
Expand Down Expand Up @@ -243,7 +243,7 @@ func (e Error) Error() string {
}

func (c *Client) decodeError(r *http.Response) error {
resBody, err := ioutil.ReadAll(r.Body)
resBody, err := io.ReadAll(r.Body)
if err != nil {
return fmt.Errorf("could not read body response: %s", err)
}
Expand Down

0 comments on commit c820888

Please sign in to comment.