Skip to content

Commit 6b634fe

Browse files
committed
No need to initialize to default.
1 parent 2bacd0b commit 6b634fe

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/org/apache/commons/codec/language/MatchRatingApproachEncoder.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,7 @@ public boolean isEncodeEquals(String name1, String name2) {
247247
// 5. Obtain the minimum rating value by calculating the length sum of the
248248
// encoded Strings and sending it down.
249249
final int sumLength = Math.abs(name1.length() + name2.length());
250-
int minRating = 0;
251-
minRating = getMinRating(sumLength);
250+
int minRating = getMinRating(sumLength);
252251

253252
// 6. Process the encoded Strings from left to right and remove any
254253
// identical characters found from both Strings respectively.

0 commit comments

Comments
 (0)