Skip to content

Commit 2b651ac

Browse files
committed
fix: replace io/ioutil with io
1 parent 1533616 commit 2b651ac

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

unmarshal.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package dagpb
33
import (
44
"fmt"
55
"io"
6-
"io/ioutil"
76

87
"github.com/ipfs/go-cid"
98
ipld "github.com/ipld/go-ipld-prime"
@@ -27,7 +26,7 @@ func Decode(na ipld.NodeAssembler, in io.Reader) error {
2726
src = buf.Bytes()
2827
} else {
2928
var err error
30-
src, err = ioutil.ReadAll(in)
29+
src, err = io.ReadAll(in)
3130
if err != nil {
3231
return err
3332
}

0 commit comments

Comments
 (0)