1
0
mirror of https://github.com/containers/image.git synced 2025-04-18 19:44:05 +03:00

Replace use of deprecated io/ioutil

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
Miloslav Trmač 2022-08-10 19:52:00 +02:00
parent 6d34786aec
commit 4af328291c

View File

@ -3,7 +3,6 @@ package blobcache
import (
"bytes"
"io"
"io/ioutil"
"testing"
"github.com/containers/image/v5/internal/private"
@ -17,7 +16,7 @@ func readNextStream(streams chan io.ReadCloser, errs chan error) ([]byte, error)
return nil, nil
}
defer r.Close()
return ioutil.ReadAll(r)
return io.ReadAll(r)
case err := <-errs:
return nil, err
}