mirror of
https://github.com/docker/docs.git
synced 2026-04-05 02:38:52 +07:00
Simplify the NopWriter code.
This commit is contained in:
@@ -170,10 +170,9 @@ func SelfPath() string {
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user