felipecrv commented on code in PR #37168:
URL: https://github.com/apache/arrow/pull/37168#discussion_r1296112968
##########
cpp/src/arrow/pretty_print.cc:
##########
@@ -145,7 +145,8 @@ class ArrayPrinter : public PrettyPrinter {
int window = is_container ? options_.container_window : options_.window;
for (int64_t i = 0; i < array.length(); ++i) {
const bool is_last = (i == array.length() - 1);
- if ((i >= window) && (i < (array.length() - window))) {
Review Comment:
Wouldn't the same effect be achieved by just replacing `i >= window` with `i
> window`?
--
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]