tustvold commented on code in PR #4003:
URL: https://github.com/apache/arrow-rs/pull/4003#discussion_r1155695485
##########
arrow-ipc/src/writer.rs:
##########
@@ -798,13 +805,24 @@ impl<W: Write> FileWriter<W> {
let dictionaries = fbb.create_vector(&self.dictionary_blocks);
let record_batches = fbb.create_vector(&self.record_blocks);
let schema = crate::convert::schema_to_fb_offset(&mut fbb,
&self.schema);
+ let fb_custom_metadata = if !self.custom_metadata.is_empty() {
Review Comment:
This could be written with `Option::then`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]