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:
parent
6d34786aec
commit
4af328291c
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user