Skip to content

Commit 97c86b7

Browse files
my-git9tekton-robot
authored andcommitted
[pkg/remote] clean up ioutil
Signed-off-by: xin.li <xin.li@daocloud.io>
1 parent 17b705c commit 97c86b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/remote/oci/resolver.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
"context"
2222
"fmt"
2323
"io"
24-
"io/ioutil"
2524
"strings"
2625
"time"
2726

@@ -210,7 +209,7 @@ func readRawLayer(layer v1.Layer) (runtime.Object, error) {
210209
}
211210
defer rc.Close()
212211

213-
contents, err := ioutil.ReadAll(rc)
212+
contents, err := io.ReadAll(rc)
214213
if err != nil {
215214
return nil, fmt.Errorf("could not read contents of image layer: %w", err)
216215
}

0 commit comments

Comments
 (0)