Skip to content

Commit

Permalink
use && to support short circuiting (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
sweetStreet authored Dec 25, 2023
1 parent cb04ca4 commit 40054f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private boolean readTerm() {
if (pinyin != null && pinyin.length() > 0) {
position++;
firstLetters.append(pinyin.charAt(0));
if (config.keepSeparateFirstLetter & pinyin.length() > 1) {
if (config.keepSeparateFirstLetter && pinyin.length() > 1) {
addCandidate(new TermItem(String.valueOf(pinyin.charAt(0)), i, i + 1, position));
}
if (config.keepFullPinyin) {
Expand Down

0 comments on commit 40054f5

Please sign in to comment.