Merge "Small readability improvement (A100)"

This commit is contained in:
Jean Chalard 2012-07-10 22:49:25 -07:00 committed by Android (Google) Code Review
commit 21e5759e8e

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);
}