From e92a4debcbd80f6e41ef4b3e53785272acc7f3cf Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Fri, 19 Jan 2024 10:13:26 -0800 Subject: [PATCH] Fix lint warning about unchecked error --- test/typecheck/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() {