Skip to content

Commit 832acee

Browse files
apacheGH-49644: [Python] Fix clang-format in AppendNdarray
1 parent daed54f commit 832acee

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎python/pyarrow/src/arrow/python/python_to_arrow.cc‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -915,8 +915,7 @@ class PyListConverter : public ListConverter<T, PyConverter, PyConverterTrait> {
915915
// order. The total number of elements must still match the list size,
916916
// which the builder validates below. 0-dimensional arrays and
917917
// variable-sized lists remain restricted to 1-dimensional values.
918-
if (PyArray_NDIM(ndarray) < 2 ||
919-
this->list_type_->id() != Type::FIXED_SIZE_LIST) {
918+
if (PyArray_NDIM(ndarray) < 2 || this->list_type_->id() != Type::FIXED_SIZE_LIST) {
920919
return Status::Invalid("Can only convert 1-dimensional array values");
921920
}
922921
flattened.reset(PyArray_Ravel(ndarray, NPY_CORDER));

0 commit comments

Comments
 (0)