diff options
Diffstat (limited to 'sonar-duplications')
-rw-r--r-- | sonar-duplications/src/main/java/org/sonar/duplications/detector/original/BlocksGroup.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sonar-duplications/src/main/java/org/sonar/duplications/detector/original/BlocksGroup.java b/sonar-duplications/src/main/java/org/sonar/duplications/detector/original/BlocksGroup.java index 6cdd4c0cbcf..063d98891ac 100644 --- a/sonar-duplications/src/main/java/org/sonar/duplications/detector/original/BlocksGroup.java +++ b/sonar-duplications/src/main/java/org/sonar/duplications/detector/original/BlocksGroup.java @@ -148,9 +148,7 @@ final class BlocksGroup { j++; continue; } - if (c == 0) { - c = block1.getIndexInFile() - indexCorrection - block2.getIndexInFile(); - } + c = block1.getIndexInFile() - indexCorrection - block2.getIndexInFile(); if (c < 0) { // list1[i] < list2[j] break; |