Fix lint warning about unchecked error

This commit is contained in:
Jordan Liggitt 2024-01-19 10:13:26 -08:00
parent d2c1a23a8a
commit e92a4debcb
No known key found for this signature in database

View File

@ -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() {