diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2012-05-21 20:52:04 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2012-05-21 20:52:04 +0200 |
| commit | 83c196820721dd2d5041078adaab0052c77ebeea (patch) | |
| tree | b73198173b3cc34eae0271645933985ba511bba6 | |
| parent | 1bfad3936d935c41b6785828973263b31417b9c7 (diff) | |
| download | cgeo-83c196820721dd2d5041078adaab0052c77ebeea.zip cgeo-83c196820721dd2d5041078adaab0052c77ebeea.tar.gz cgeo-83c196820721dd2d5041078adaab0052c77ebeea.tar.bz2 | |
Do not use "else" with "return"
| -rw-r--r-- | main/src/cgeo/geocaching/maps/CachesOverlay.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/maps/CachesOverlay.java b/main/src/cgeo/geocaching/maps/CachesOverlay.java index 4495340..8c7aff7 100644 --- a/main/src/cgeo/geocaching/maps/CachesOverlay.java +++ b/main/src/cgeo/geocaching/maps/CachesOverlay.java @@ -236,7 +236,9 @@ public class CachesOverlay extends AbstractItemizedOverlay { } requestDetailsThread.start(); return true; - } else if (coordinate.getCoordType() != null && coordinate.getCoordType().equalsIgnoreCase("waypoint") && coordinate.getId() > 0) { + } + + if (coordinate.getCoordType() != null && coordinate.getCoordType().equalsIgnoreCase("waypoint") && coordinate.getId() > 0) { CGeoMap.markCacheAsDirty(coordinate.getGeocode()); WaypointPopup.startActivity(context, coordinate.getId(), coordinate.getGeocode()); } else { |
