aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2012-05-21 20:52:04 +0200
committerSamuel Tardieu <sam@rfc1149.net>2012-05-21 20:52:04 +0200
commit83c196820721dd2d5041078adaab0052c77ebeea (patch)
treeb73198173b3cc34eae0271645933985ba511bba6
parent1bfad3936d935c41b6785828973263b31417b9c7 (diff)
downloadcgeo-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.java4
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 {