diff options
author | Paulo Gomes <pjbgf@linux.com> | 2023-05-11 21:59:37 +0100 |
---|---|---|
committer | Paulo Gomes <pjbgf@linux.com> | 2023-05-11 21:59:37 +0100 |
commit | 096b3cc16b547f3c0d6e4f92046945bcfac0fa14 (patch) | |
tree | df3e5f5265aac52a6683be10d74561e26e70cb0c /plumbing/object/blob_test.go | |
parent | 9dfaf6acd8e3aa1c85bcce7d45f8e8c6b908319c (diff) | |
download | go-git-096b3cc16b547f3c0d6e4f92046945bcfac0fa14.tar.gz |
*: Remove use of deprecated io/util
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
Diffstat (limited to 'plumbing/object/blob_test.go')
-rw-r--r-- | plumbing/object/blob_test.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plumbing/object/blob_test.go b/plumbing/object/blob_test.go index 4461343..9481dbe 100644 --- a/plumbing/object/blob_test.go +++ b/plumbing/object/blob_test.go @@ -3,7 +3,6 @@ package object import ( "bytes" "io" - "io/ioutil" "github.com/go-git/go-git/v5/plumbing" @@ -37,7 +36,7 @@ func (s *BlobsSuite) TestBlobHash(c *C) { c.Assert(err, IsNil) defer func() { c.Assert(reader.Close(), IsNil) }() - data, err := ioutil.ReadAll(reader) + data, err := io.ReadAll(reader) c.Assert(err, IsNil) c.Assert(string(data), Equals, "FOO") } @@ -96,14 +95,14 @@ func (s *BlobsSuite) TestBlobIter(c *C) { r1, err := b.Reader() c.Assert(err, IsNil) - b1, err := ioutil.ReadAll(r1) + b1, err := io.ReadAll(r1) c.Assert(err, IsNil) c.Assert(r1.Close(), IsNil) r2, err := blobs[i].Reader() c.Assert(err, IsNil) - b2, err := ioutil.ReadAll(r2) + b2, err := io.ReadAll(r2) c.Assert(err, IsNil) c.Assert(r2.Close(), IsNil) |