Commit 3e47caab for tesseract

commit 3e47caab8cce4b857a1873aff0d2486c357bdf64
Author: Stefan Weil <sw@weilnetz.de>
Date:   Sun Jun 21 14:10:03 2026 +0200

    Fix condition in Tesseract::SelectGoodDiacriticOutlines (reported by Codacy)

    Signed-off-by: Stefan Weil <sw@weilnetz.de>

diff --git a/src/ccmain/control.cpp b/src/ccmain/control.cpp
index fde87e9b..2840e173 100644
--- a/src/ccmain/control.cpp
+++ b/src/ccmain/control.cpp
@@ -1155,8 +1155,7 @@ bool Tesseract::SelectGoodDiacriticOutlines(int pass, float certainty_threshold,
   // Iteratively zero out the bit that improves the certainty the most, until
   // we get past the threshold, have zero bits, or fail to improve.
   int best_index = 0; // To zero out.
-  while (num_outlines > 1 && best_index >= 0 &&
-         (blob == nullptr || best_cert < target_cert || blob != nullptr)) {
+  while (num_outlines > 1 && best_index >= 0 && best_cert < target_cert) {
     // Find the best bit to zero out.
     best_index = -1;
     for (unsigned i = 0; i < outlines.size(); ++i) {