diff options
| -rw-r--r-- | main/src/cgeo/geocaching/ui/CacheDetailsCreator.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/main/src/cgeo/geocaching/ui/CacheDetailsCreator.java b/main/src/cgeo/geocaching/ui/CacheDetailsCreator.java index 34bdf4b..d55d9c9 100644 --- a/main/src/cgeo/geocaching/ui/CacheDetailsCreator.java +++ b/main/src/cgeo/geocaching/ui/CacheDetailsCreator.java @@ -126,10 +126,7 @@ public final class CacheDetailsCreator { private static String getVisitedDate(final Geocache cache) { final long visited = cache.getVisitedDate(); - if (visited != 0) { - return "(" + Formatter.formatShortDate(visited) + ")"; - } - return ""; + return visited != 0 ? " (" + Formatter.formatShortDate(visited) + ")" : ""; } public void addRating(final Geocache cache) { |
