aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2014-01-11 16:01:41 +0100
committerSamuel Tardieu <sam@rfc1149.net>2014-01-11 21:16:42 +0100
commit9c61ebc535fc7ef35a336db15a80215f3535983f (patch)
tree351b07e2fa5d4dc6194c81cdd934ae1403882caa
parent9c036c506d78c4b927a91ea65326eb09424a3795 (diff)
downloadcgeo-9c61ebc535fc7ef35a336db15a80215f3535983f.zip
cgeo-9c61ebc535fc7ef35a336db15a80215f3535983f.tar.gz
cgeo-9c61ebc535fc7ef35a336db15a80215f3535983f.tar.bz2
refactoring: simplify boolean expression
-rw-r--r--main/src/cgeo/geocaching/Geocache.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/main/src/cgeo/geocaching/Geocache.java b/main/src/cgeo/geocaching/Geocache.java
index e417a8e..66d37bd 100644
--- a/main/src/cgeo/geocaching/Geocache.java
+++ b/main/src/cgeo/geocaching/Geocache.java
@@ -816,13 +816,7 @@ public class Geocache implements ICache, IWaypoint {
}
public boolean showSize() {
- if (size == CacheSize.NOT_CHOSEN) {
- return false;
- }
- if (isEventCache() || isVirtual()) {
- return false;
- }
- return true;
+ return !(size == CacheSize.NOT_CHOSEN || isEventCache() || isVirtual());
}
public long getUpdated() {