浏览代码

Simplify the NopWriter code.

Caleb Spare 12 年之前
父节点
当前提交
27ee261e60
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      utils/utils.go

+ 2 - 3
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
 }