File tree 2 files changed +12
-12
lines changed
2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -132,18 +132,6 @@ func DetectCompression(source []byte) compression.Compression {
132
132
return compression .Detect (source )
133
133
}
134
134
135
- type readCloserWrapper struct {
136
- io.Reader
137
- closer func () error
138
- }
139
-
140
- func (r * readCloserWrapper ) Close () error {
141
- if r .closer != nil {
142
- return r .closer ()
143
- }
144
- return nil
145
- }
146
-
147
135
// DecompressStream decompresses the archive and returns a ReaderCloser with the decompressed archive.
148
136
//
149
137
// Deprecated: use [compression.DecompressStream].
Original file line number Diff line number Diff line change @@ -310,6 +310,18 @@ func TestApplyLayerWhiteouts(t *testing.T) {
310
310
}
311
311
}
312
312
313
+ type readCloserWrapper struct {
314
+ io.Reader
315
+ closer func () error
316
+ }
317
+
318
+ func (r * readCloserWrapper ) Close () error {
319
+ if r .closer != nil {
320
+ return r .closer ()
321
+ }
322
+ return nil
323
+ }
324
+
313
325
func makeTestLayer (paths []string ) (_ io.ReadCloser , retErr error ) {
314
326
tmpDir , err := os .MkdirTemp ("" , "graphdriver-test-mklayer" )
315
327
if err != nil {
You can’t perform that action at this time.
0 commit comments