mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Simplify the NopWriter code.
This commit is contained in:
parent
da3962266a
commit
27ee261e60
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue