Fix errcheck lint: check Flush() error in CSV writer test

This commit is contained in:
John Kerl 2026-07-05 20:17:42 -04:00
parent 3e366a2fde
commit c9fff5f36e

View file

@ -37,7 +37,9 @@ func runWriter(t *testing.T, writer IRecordWriter) string {
if err != nil {
t.Fatal(err)
}
bufferedOutputStream.Flush()
if err := bufferedOutputStream.Flush(); err != nil {
t.Fatal(err)
}
return buffer.String()
}