summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2018-03-23 15:47:41 +0100
committerByteHamster <info@bytehamster.com>2018-03-23 15:47:41 +0100
commit97b5779c4acd6ee839d1ba78b1a305461b97b9fc (patch)
treec5025732e6aeb7c9876bfd9d529fb7dcddd3bf75 /core
parent5048eb10d2b6ff76df938ae1ae338f8e28043f48 (diff)
downloadAntennaPod-97b5779c4acd6ee839d1ba78b1a305461b97b9fc.zip
Remove nested if
Diffstat (limited to 'core')
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/feed/FeedItem.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/feed/FeedItem.java b/core/src/main/java/de/danoeh/antennapod/core/feed/FeedItem.java
index 8a44bedf4..87298d4c3 100644
--- a/core/src/main/java/de/danoeh/antennapod/core/feed/FeedItem.java
+++ b/core/src/main/java/de/danoeh/antennapod/core/feed/FeedItem.java
@@ -377,12 +377,10 @@ 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()) {
+ return description;
} else {
- if (description.length() > 1.25 * contentEncoded.length()) {
- return description;
- } else {
- return contentEncoded;
- }
+ return contentEncoded;
}
};
}