chore: remove unecessary batch check (#5620)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
pull/24376/head
Andrew Lamb 2022-09-13 08:41:59 -04:00 committed by GitHub
parent f86d3e31da
commit 9d63edb299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -118,9 +118,7 @@ where
while let Some(maybe_batch) = stream.next().await {
let batch = maybe_batch?;
if batch.num_rows() != 0 {
writer.write(&batch)?;
}
writer.write(&batch)?;
}
let meta = writer.close().map_err(CodecError::from)?;