Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine Pitrou <pitrou@free.fr>
  • Loading branch information
kou and pitrou authored Jun 29, 2023
1 parent 5fd2145 commit 6921721
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cpp/src/arrow/ipc/reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,8 @@ class ARROW_EXPORT CollectListener : public Listener {
if (record_batches_.empty()) {
return record_batch_with_metadata;
}
record_batch_with_metadata.batch =
std::move(record_batches_[record_batches_.size() - 1]);
record_batch_with_metadata.custom_metadata =
std::move(metadatas_[metadatas_.size() - 1]);
record_batch_with_metadata.batch = std::move(record_batches_.back());
record_batch_with_metadata.custom_metadata = std::move(metadatas_.back());
record_batches_.pop_back();
metadatas_.pop_back();
return record_batch_with_metadata;
Expand Down

0 comments on commit 6921721

Please sign in to comment.