diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2011-09-27 21:56:11 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2011-09-27 22:36:57 +0200 |
commit | 5ae70fecd110eb56656fa2993d3ad2d86353cff9 (patch) | |
tree | c5af69f7389fe9cbc8d0c6334192aa3f87f6f98e /main/src/cgeo/geocaching/cgData.java | |
parent | 5ca67e96b5500792f69d4732e28b6b0978aa9a91 (diff) | |
download | cgeo-5ae70fecd110eb56656fa2993d3ad2d86353cff9.zip cgeo-5ae70fecd110eb56656fa2993d3ad2d86353cff9.tar.gz cgeo-5ae70fecd110eb56656fa2993d3ad2d86353cff9.tar.bz2 |
Remove unnecessary null checks
Diffstat (limited to 'main/src/cgeo/geocaching/cgData.java')
-rw-r--r-- | main/src/cgeo/geocaching/cgData.java | 10 |
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; } } |