Remove nested if

This commit is contained in:
ByteHamster 2018-03-23 15:47:41 +01:00
parent 5048eb10d2
commit 97b5779c4a
1 changed files with 3 additions and 5 deletions

View File

@ -377,13 +377,11 @@ public class FeedItem extends FeedComponent implements ShownotesProvider, Flattr
return description; return description;
} else if (TextUtils.isEmpty(description)) { } else if (TextUtils.isEmpty(description)) {
return contentEncoded; return contentEncoded;
} else { } else if (description.length() > 1.25 * contentEncoded.length()) {
if (description.length() > 1.25 * contentEncoded.length()) {
return description; return description;
} else { } else {
return contentEncoded; return contentEncoded;
} }
}
}; };
} }