Skip to content

Commit

Permalink
minor: move comment to the correct location (#4655)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwener authored Aug 7, 2023
1 parent ab8d918 commit f16ceed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arrow-array/src/record_batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ impl RecordBatch {
)));
}

// check that all columns have the same row count
let row_count = options
.row_count
.or_else(|| columns.first().map(|col| col.len()))
Expand All @@ -177,6 +176,7 @@ impl RecordBatch {
}
}

// check that all columns have the same row count
if columns.iter().any(|c| c.len() != row_count) {
let err = match options.row_count {
Some(_) => {
Expand Down

0 comments on commit f16ceed

Please sign in to comment.