aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2015-01-02 01:41:30 +0100
committerSamuel Tardieu <sam@rfc1149.net>2015-01-02 01:41:30 +0100
commit4e8d093d518792d19b703482c571d3d54349d474 (patch)
tree00109da71746fae30faf0974677abef0e24d7ca0
parentb9d93ce637577f106e608e04dc2a6baea72f646d (diff)
downloadcgeo-4e8d093d518792d19b703482c571d3d54349d474.zip
cgeo-4e8d093d518792d19b703482c571d3d54349d474.tar.gz
cgeo-4e8d093d518792d19b703482c571d3d54349d474.tar.bz2
Inline local variable
-rw-r--r--main/src/cgeo/geocaching/list/StoredList.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/list/StoredList.java b/main/src/cgeo/geocaching/list/StoredList.java
index 4d6828a..0ffd58a 100644
--- a/main/src/cgeo/geocaching/list/StoredList.java
+++ b/main/src/cgeo/geocaching/list/StoredList.java
@@ -107,8 +107,7 @@ public final class StoredList extends AbstractList {
lists.addAll(getSortedLists());
if (exceptListId == StoredList.STANDARD_LIST_ID || exceptListId >= DataStore.customListIdOffset) {
- final StoredList exceptList = DataStore.getList(exceptListId);
- lists.remove(exceptList);
+ lists.remove(DataStore.getList(exceptListId));
}
if (!onlyConcreteLists) {