aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/connector/opencaching
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2012-04-28 12:04:36 +0200
committerSamuel Tardieu <sam@rfc1149.net>2012-04-28 13:30:05 +0200
commit49716bc6a97ca76ff2b0ff90f0b06d826a1a6220 (patch)
tree1cb1317993cf4616c07348cc55d9cb7e52e6a306 /main/src/cgeo/geocaching/connector/opencaching
parentb3c534f8c7b4d42819960486bb1942b109d877f8 (diff)
downloadcgeo-49716bc6a97ca76ff2b0ff90f0b06d826a1a6220.zip
cgeo-49716bc6a97ca76ff2b0ff90f0b06d826a1a6220.tar.gz
cgeo-49716bc6a97ca76ff2b0ff90f0b06d826a1a6220.tar.bz2
Refactoring: remove unnecessary else statements
Diffstat (limited to 'main/src/cgeo/geocaching/connector/opencaching')
-rw-r--r--main/src/cgeo/geocaching/connector/opencaching/OkapiClient.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/main/src/cgeo/geocaching/connector/opencaching/OkapiClient.java b/main/src/cgeo/geocaching/connector/opencaching/OkapiClient.java
index ce59901..165e277 100644
--- a/main/src/cgeo/geocaching/connector/opencaching/OkapiClient.java
+++ b/main/src/cgeo/geocaching/connector/opencaching/OkapiClient.java
@@ -226,7 +226,7 @@ final public class OkapiClient {
if ("Found it".equalsIgnoreCase(logType)) {
return LogType.LOG_FOUND_IT;
}
- else if ("Didn't find it".equalsIgnoreCase(logType)) {
+ if ("Didn't find it".equalsIgnoreCase(logType)) {
return LogType.LOG_DIDNT_FIND_IT;
}
return LogType.LOG_NOTE;
@@ -280,11 +280,14 @@ final public class OkapiClient {
private static CacheType getCacheType(final String cacheType) {
if (cacheType.equalsIgnoreCase("Traditional")) {
return CacheType.TRADITIONAL;
- } else if (cacheType.equalsIgnoreCase("Multi")) {
+ }
+ if (cacheType.equalsIgnoreCase("Multi")) {
return CacheType.MULTI;
- } else if (cacheType.equalsIgnoreCase("Quiz")) {
+ }
+ if (cacheType.equalsIgnoreCase("Quiz")) {
return CacheType.MYSTERY;
- } else if (cacheType.equalsIgnoreCase("Virtual")) {
+ }
+ if (cacheType.equalsIgnoreCase("Virtual")) {
return CacheType.VIRTUAL;
}
return CacheType.UNKNOWN;