Remove nested if
This commit is contained in:
parent
5048eb10d2
commit
97b5779c4a
|
@ -377,13 +377,11 @@ public class FeedItem extends FeedComponent implements ShownotesProvider, Flattr
|
|||
return description;
|
||||
} else if (TextUtils.isEmpty(description)) {
|
||||
return contentEncoded;
|
||||
} else {
|
||||
if (description.length() > 1.25 * contentEncoded.length()) {
|
||||
} else if (description.length() > 1.25 * contentEncoded.length()) {
|
||||
return description;
|
||||
} else {
|
||||
return contentEncoded;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue