mirror of
https://github.com/moby/moby.git
synced 2026-08-04 15:11:00 +00:00
Co-Authored-by: Sebastiaan van Stijn <github@gone.nl> Signed-off-by: Josh Chorlton <jchorlton@gmail.com> Signed-off-by: Cory Snider <csnider@mirantis.com> Signed-off-by: Josh Chorlton <jchorlton@gmail.com>
17 lines
256 B
Go
17 lines
256 B
Go
package io
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
// ReadSeekNopCloser wraps an io.ReadSeeker with an additional Close method
|
|
// that does nothing.
|
|
type ReadSeekNopCloser struct {
|
|
io.ReadSeeker
|
|
}
|
|
|
|
// Close does nothing.
|
|
func (ReadSeekNopCloser) Close() error {
|
|
return nil
|
|
}
|