mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-01 07:59:05 +08:00
Plumbing: Remove comparison which is always false
Warning from LGTM: Comparison is always false because index >= 0. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
944816ae3d
commit
ae93b65b1f
@ -174,7 +174,7 @@ float* Plumbing::LayerLearningRatePtr(const char* id) const {
|
||||
ASSERT_HOST(*next_id == ':');
|
||||
return plumbing->LayerLearningRatePtr(next_id + 1);
|
||||
}
|
||||
if (index < 0 || index >= learning_rates_.size()) return nullptr;
|
||||
if (index >= learning_rates_.size()) return nullptr;
|
||||
return &learning_rates_[index];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user