mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-17 16:38:54 +00:00
Fix errcheck lint: check Flush() error in CSV writer test
This commit is contained in:
parent
3e366a2fde
commit
c9fff5f36e
1 changed files with 3 additions and 1 deletions
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue