diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2012-04-17 14:00:25 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2012-04-17 14:00:25 +0200 |
commit | fcf6784a9bbb8bf8607e09e75408302fbb31252c (patch) | |
tree | 08e6097aea8f52c65ada098515d3ae9bb48b73c5 /main/src/cgeo/geocaching/network | |
parent | 2b19a8b4640eb6edfbee82d8bd1409ed440f83ee (diff) | |
download | cgeo-fcf6784a9bbb8bf8607e09e75408302fbb31252c.zip cgeo-fcf6784a9bbb8bf8607e09e75408302fbb31252c.tar.gz cgeo-fcf6784a9bbb8bf8607e09e75408302fbb31252c.tar.bz2 |
Refactoring: response cannot be null
Diffstat (limited to 'main/src/cgeo/geocaching/network')
-rw-r--r-- | main/src/cgeo/geocaching/network/Network.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/network/Network.java b/main/src/cgeo/geocaching/network/Network.java index 3f06188..75cad33 100644 --- a/main/src/cgeo/geocaching/network/Network.java +++ b/main/src/cgeo/geocaching/network/Network.java @@ -302,7 +302,7 @@ public abstract class Network { } static public boolean isSuccess(final HttpResponse response) { - return response != null && response.getStatusLine().getStatusCode() == 200; + return response.getStatusLine().getStatusCode() == 200; } public static JSONObject requestJSON(final String uri, final Parameters params) { |