mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
pkg/ioutils: deprecate NopWriter
It's not used, and users can use io.Discard instead. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -6,6 +6,8 @@ import (
|
||||
)
|
||||
|
||||
// NopWriter represents a type which write operation is nop.
|
||||
//
|
||||
// Deprecated: use [io.Discard] instead. This type will be removed in the next release.
|
||||
type NopWriter struct{}
|
||||
|
||||
func (*NopWriter) Write(buf []byte) (int, error) {
|
||||
|
||||
Reference in New Issue
Block a user