mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-21 08:43:03 +08:00
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:
parent
f3acab507d
commit
83d97ffc80
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user