Skip to content
Snippets Groups Projects
Commit 82d5ed6f authored by Jean Chalard's avatar Jean Chalard
Browse files

Small readability improvement (A100)

Change-Id: I6340748654a95d203ed43ceb9a7e6468b5b8ab1c
parent 860a9f85
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment