From 815ee250714b2cfb7effbd02880fd688f30778b9 Mon Sep 17 00:00:00 2001 From: Bananeweizen Date: Sun, 7 Sep 2014 17:46:02 +0200 Subject: fix some findbugs issues --- main/src/cgeo/geocaching/Intents.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'main/src/cgeo/geocaching/Intents.java') 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; } } -- cgit v1.1