Merge "Small readability improvement (A100)"

main
Jean Chalard 2012-07-10 22:49:25 -07:00 committed by Android (Google) Code Review
commit 21e5759e8e
1 changed files with 2 additions and 2 deletions

View File

@ -125,8 +125,8 @@ public class BinaryDictionary extends Dictionary {
final int count;
if (composer.size() <= 1) {
count = TextUtils.isEmpty(prevWord) ? -1 : getBigramsInternal(composer,
prevWordCodePointArray);
if (TextUtils.isEmpty(prevWord)) return null;
count = getBigramsInternal(composer, prevWordCodePointArray);
} else {
count = getWordsInternal(composer, prevWordCodePointArray, proximityInfo);
}