diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2014-01-11 16:01:41 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2014-01-11 21:16:42 +0100 |
| commit | 9c61ebc535fc7ef35a336db15a80215f3535983f (patch) | |
| tree | 351b07e2fa5d4dc6194c81cdd934ae1403882caa /main/src/cgeo/geocaching/Geocache.java | |
| parent | 9c036c506d78c4b927a91ea65326eb09424a3795 (diff) | |
| download | cgeo-9c61ebc535fc7ef35a336db15a80215f3535983f.zip cgeo-9c61ebc535fc7ef35a336db15a80215f3535983f.tar.gz cgeo-9c61ebc535fc7ef35a336db15a80215f3535983f.tar.bz2 | |
refactoring: simplify boolean expression
Diffstat (limited to 'main/src/cgeo/geocaching/Geocache.java')
| -rw-r--r-- | main/src/cgeo/geocaching/Geocache.java | 8 |
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() { |
