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 authored and kashav committed Nov 8, 2023
1 parent 7e90fdf commit 0659868
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 0659868

Please sign in to comment.