kenhuuu commented on code in PR #3448:
URL: https://github.com/apache/tinkerpop/pull/3448#discussion_r3365515179
##########
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/CountLocalStep.java:
##########
@@ -42,6 +43,9 @@ public CountLocalStep(final Traversal.Admin traversal) {
@Override
protected Long map(final Traverser.Admin<S> traverser) {
final S item = traverser.get();
+ if (item instanceof Tree)
Review Comment:
Why specialize case Tree here? Wouldn't the default just return a
singletonIterator so the count would be 1?
--
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]