Skip to content

Commit

Permalink
Fix for clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
eatonphil committed Jul 2, 2024
1 parent 8597fb7 commit 9c14279
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/http/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@ async fn test_upload_base(
// drop the writer early to release the borrow.
if file_format == "csv" {
let mut writer = WriterBuilder::new()
.with_header(if let Some(has_headers) = add_headers {
has_headers
} else {
true
})
.with_header(add_headers.unwrap_or(true))
.build(&mut named_tempfile);
writer.write(&input_batch).unwrap();
} else if file_format == "parquet" {
Expand Down

0 comments on commit 9c14279

Please sign in to comment.