diff options
Diffstat (limited to 'main/src/cgeo/geocaching/Intents.java')
| -rw-r--r-- | main/src/cgeo/geocaching/Intents.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/Intents.java b/main/src/cgeo/geocaching/Intents.java index a2b9dee..5ed2719 100644 --- a/main/src/cgeo/geocaching/Intents.java +++ b/main/src/cgeo/geocaching/Intents.java @@ -89,12 +89,10 @@ public class Intents { if (StringUtils.isBlank(typeName)) { return CacheListType.OFFLINE; } - CacheListType listType; try { - listType = CacheListType.valueOf(typeName); + return CacheListType.valueOf(typeName); } catch (final IllegalArgumentException e) { return CacheListType.OFFLINE; } - return (listType != null) ? listType : CacheListType.OFFLINE; } } |
