cleanup: fix knownConditionTrueFalse code smells

This commit is contained in:
Juho Hiltunen
2022-10-30 10:11:44 +02:00
parent 7c7ab9e177
commit fa575b54cb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -763,7 +763,7 @@ static const char *FindReplacementChars(Translator *tr, const char **pfrom, unsi
nmatched++;
}
if (*from == 0 && matched) {
if (matched) {
*ignore_next_n = nmatched;
return from + 1;
}
+1 -1
View File
@@ -1065,7 +1065,7 @@ static int CheckDottedAbbrev(char *word1)
nbytes += 2; // delete the final dot (eg. u.s.a.'s)
ok = 2;
}
} else if ((count > 0) && (word[nbytes] == ' '))
} else if ((count > 0))
ok = 2;
}