Skip to content

Commit

Permalink
fix: replace io/ioutil with io
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Aug 25, 2022
1 parent 1533616 commit 2b651ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions unmarshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package dagpb
import (
"fmt"
"io"
"io/ioutil"

"github.com/ipfs/go-cid"
ipld "github.com/ipld/go-ipld-prime"
Expand All @@ -27,7 +26,7 @@ func Decode(na ipld.NodeAssembler, in io.Reader) error {
src = buf.Bytes()
} else {
var err error
src, err = ioutil.ReadAll(in)
src, err = io.ReadAll(in)
if err != nil {
return err
}
Expand Down

0 comments on commit 2b651ac

Please sign in to comment.