Browse Source

cleanup: fix knownConditionTrueFalse code smells

master
Juho Hiltunen 2 years ago
parent
commit
fa575b54cb
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/libespeak-ng/translate.c
  2. 1
    1
      src/libespeak-ng/translateword.c

+ 1
- 1
src/libespeak-ng/translate.c View File

nmatched++; nmatched++;
} }


if (*from == 0 && matched) {
if (matched) {
*ignore_next_n = nmatched; *ignore_next_n = nmatched;
return from + 1; return from + 1;
} }

+ 1
- 1
src/libespeak-ng/translateword.c View File

nbytes += 2; // delete the final dot (eg. u.s.a.'s) nbytes += 2; // delete the final dot (eg. u.s.a.'s)
ok = 2; ok = 2;
} }
} else if ((count > 0) && (word[nbytes] == ' '))
} else if ((count > 0))
ok = 2; ok = 2;
} }



Loading…
Cancel
Save