mirror of
https://github.com/clearlinux/docker.git
synced 2026-05-15 19:23:44 +00: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