Tim-Brooks opened a new pull request, #16073: URL: https://github.com/apache/lucene/pull/16073
The `else if (queue.size() > 0)` guard is always true when reached: an empty queue sets queueMinDocID to NO_MORE_DOCS, so any valid nextDoc satisfies nextDoc < queueMinDocID and takes the fast path first. Replace with `else` and add a comment explaining why the queue is never empty at that point. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
