mikemccand commented on a change in pull request #44:
URL: https://github.com/apache/lucene/pull/44#discussion_r602733991



##########
File path: lucene/core/src/java/org/apache/lucene/index/CheckIndex.java
##########
@@ -652,14 +651,6 @@ public Status checkIndex(List<String> onlySegments) throws 
IOException {
         Sort indexSort = info.info.getIndexSort();
         if (indexSort != null) {
           msg(infoStream, "    sort=" + indexSort);
-          if (previousIndexSort != null) {

Review comment:
       This is indeed dead code, but that's crazy!  I think the intention here 
was to set `previousIndexSort = null` OUTSIDE the `for` loop, but that didn't 
happen, so this code is clearly dead.




-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to