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:
Stefan Weil 2018-10-08 13:47:16 +02:00
parent 944816ae3d
commit ae93b65b1f

View File

@ -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];
}