gofix weekly fixes for logging.

This commit is contained in:
Alex Bramley 2011-11-13 13:30:08 +00:00
parent f62470c091
commit 3710f67670
1 changed files with 2 additions and 4 deletions

View File

@ -1,7 +1,6 @@
package logging package logging
import ( import (
"os"
"strings" "strings"
"testing" "testing"
) )
@ -13,7 +12,7 @@ type mockWriter struct {
written []byte written []byte
} }
func (w *mockWriter) Write(p []byte) (n int, err os.Error) { func (w *mockWriter) Write(p []byte) (n int, err error) {
w.written = append(w.written, p...) w.written = append(w.written, p...)
return len(p), nil return len(p), nil
} }
@ -89,7 +88,6 @@ func (wm *writerMap) Expect(exp string) {
} }
} }
// When you expect nothing to be logged // When you expect nothing to be logged
func (wm *writerMap) ExpectNothing() { func (wm *writerMap) ExpectNothing() {
for lv, w := range wm.m { for lv, w := range wm.m {