Skip to content

Commit

Permalink
fix: remove use of io/ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
powersj committed Sep 27, 2022
1 parent f8df105 commit f1f6bf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions query.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package pciids
import (
"context"
"fmt"
"io/ioutil"
"io"
"net/http"
"strings"

Expand Down Expand Up @@ -50,7 +50,7 @@ func LatestWithContext(ctx context.Context) (string, error) {
return "", errors.New(fmt.Sprintln("invalid response status code: ", resp.Status))
}

bodyBytes, err := ioutil.ReadAll(resp.Body)
bodyBytes, err := io.ReadAll(resp.Body)
if err != nil {
return "", errors.Wrap(err, "could not read downloaded file")
}
Expand Down

0 comments on commit f1f6bf4

Please sign in to comment.