Skip to content

Commit

Permalink
chore: remove refs to deprecated io/ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill committed Oct 27, 2023
1 parent 7e90fdf commit d79c67f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions fsql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"encoding/hex"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"reflect"
Expand Down Expand Up @@ -361,7 +360,7 @@ func GetAttrs(path string, attrs ...string) []string {
// elegant solution when we introduce new modifiers in the future.
switch attr {
case "hash":
b, err := ioutil.ReadFile(path)
b, err := os.ReadFile(path)
if err != nil {
return []string{}
}
Expand Down
3 changes: 1 addition & 2 deletions transform/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"crypto/sha1"
"encoding/hex"
"hash"
"io/ioutil"
"os"
"path/filepath"
"strings"
Expand Down Expand Up @@ -72,7 +71,7 @@ func ComputeHash(info os.FileInfo, path string, h hash.Hash) (interface{}, error
return fallback, nil
}

b, err := ioutil.ReadFile(path)
b, err := os.ReadFile(path)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit d79c67f

Please sign in to comment.