From 27ee261e6048c6fa0334bcce2116610dcd04aaed Mon Sep 17 00:00:00 2001 From: Caleb Spare Date: Tue, 2 Jul 2013 14:55:20 -0700 Subject: [PATCH] Simplify the NopWriter code. --- utils/utils.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/utils/utils.go b/utils/utils.go index 52f8eefb95..eee6685c8b 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -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 }