Skip to content

Commit 61825de

Browse files
committed
Stop using Write method into stdout/stderr to avoid errcheck warning.
1 parent b782d91 commit 61825de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debug/debug.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func output(s string) {
2929
_, file, line, _ := runtime.Caller(2)
3030
fmt.Fprintf(Output, "%s:%d> %s", path.Base(file), line, s)
3131
if s[len(s)-1] != '\n' {
32-
Output.Write([]byte{'\n'})
32+
fmt.Fprint(Output, "\n")
3333
}
3434
}
3535

0 commit comments

Comments
 (0)