mirror of https://github.com/docker/docs.git
Simplify the NopWriter code.
This commit is contained in:
parent
da3962266a
commit
27ee261e60
|
@ -170,10 +170,9 @@ func SelfPath() string {
|
||||||
return path
|
return path
|
||||||
}
|
}
|
||||||
|
|
||||||
type NopWriter struct {
|
type NopWriter struct{}
|
||||||
}
|
|
||||||
|
|
||||||
func (w *NopWriter) Write(buf []byte) (int, error) {
|
func (*NopWriter) Write(buf []byte) (int, error) {
|
||||||
return len(buf), nil
|
return len(buf), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue