[gardening] Use !empty() over size() > 0

This commit is contained in:
Sho Ikeda
2018-03-08 09:21:09 +09:00
parent f8a9e56957
commit cea6c03eb2
35 changed files with 58 additions and 65 deletions

View File

@@ -496,7 +496,7 @@ CandidateSpecificMatcher::scoreCandidateTrial(unsigned firstPatternPos) {
trialScore += patternLength / static_cast<double>(baseNameLength) * 0.25;
// Exact matches are even better.
if (patternLength >= baseNameLength && runs.size() > 0 &&
if (patternLength >= baseNameLength && !runs.empty() &&
runs[0].location == 0) {
trialScore *= 1.1;
}