aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgData.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/cgData.java')
-rw-r--r--main/src/cgeo/geocaching/cgData.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/main/src/cgeo/geocaching/cgData.java b/main/src/cgeo/geocaching/cgData.java
index e4e6311..f51d276 100644
--- a/main/src/cgeo/geocaching/cgData.java
+++ b/main/src/cgeo/geocaching/cgData.java
@@ -903,10 +903,7 @@ public class cgData {
list.add((String) cursor.getString(index));
} while (cursor.moveToNext());
} else {
- if (cursor != null) {
- cursor.close();
- }
-
+ cursor.close();
return null;
}
}
@@ -1969,10 +1966,7 @@ public class cgData {
caches.add(cache);
} while (cursor.moveToNext());
} else {
- if (cursor != null) {
- cursor.close();
- }
-
+ cursor.close();
return null;
}
}