mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
cleanup: fix knownConditionTrueFalse code smells
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user