Remove redundant comparison

This fixes an LGTM alert:

    Comparison is always true because i >= 2.

Signed-off-by: Stefan Weil <sw@weil.de>
This commit is contained in:
Stefan Weil 2020-12-30 11:54:30 +01:00
parent f3acab507d
commit 83d97ffc80

View File

@ -80,7 +80,7 @@ static Pix* RemoveEnclosingCircle(Pix* pixs) {
if (i == 1 || count > max_count) {
max_count = count;
min_count = count;
} else if (i > 1 && count < min_count) {
} else if (count < min_count) {
min_count = count;
pixDestroy(&pixout);
pixout = pixCopy(nullptr, pixt); // Save the best.