diff --git a/test/typecheck/main.go b/test/typecheck/main.go index eb213293cfd..9cb1c17a9e1 100644 --- a/test/typecheck/main.go +++ b/test/typecheck/main.go @@ -241,10 +241,10 @@ func dedup(errors []packages.Error) []string { var outMu sync.Mutex -func serialFprintf(w io.Writer, format string, a ...interface{}) (n int, err error) { +func serialFprintf(w io.Writer, format string, a ...interface{}) { outMu.Lock() defer outMu.Unlock() - return fmt.Fprintf(w, format, a...) + _, _ = fmt.Fprintf(w, format, a...) } func main() {