Simplify the NopWriter code.

This commit is contained in:
Caleb Spare 2013-07-02 14:55:20 -07:00
parent da3962266a
commit 27ee261e60
1 changed files with 2 additions and 3 deletions

View File

@ -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
}