From c9fff5f36ef9466b16a785edc7d3537fe9b36754 Mon Sep 17 00:00:00 2001 From: John Kerl Date: Sun, 5 Jul 2026 20:17:42 -0400 Subject: [PATCH] Fix errcheck lint: check Flush() error in CSV writer test --- pkg/output/record_writer_csv_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/output/record_writer_csv_test.go b/pkg/output/record_writer_csv_test.go index dd3d6d34f..7e313bdb6 100644 --- a/pkg/output/record_writer_csv_test.go +++ b/pkg/output/record_writer_csv_test.go @@ -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() }