Skip to content

Commit ae93b65

Browse files
committed
Plumbing: Remove comparison which is always false
Warning from LGTM: Comparison is always false because index >= 0. Signed-off-by: Stefan Weil <[email protected]>
1 parent 944816a commit ae93b65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lstm/plumbing.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ float* Plumbing::LayerLearningRatePtr(const char* id) const {
174174
ASSERT_HOST(*next_id == ':');
175175
return plumbing->LayerLearningRatePtr(next_id + 1);
176176
}
177-
if (index < 0 || index >= learning_rates_.size()) return nullptr;
177+
if (index >= learning_rates_.size()) return nullptr;
178178
return &learning_rates_[index];
179179
}
180180

0 commit comments

Comments
 (0)