diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2014-09-10 07:32:40 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2014-09-10 07:32:40 +0200 |
| commit | 76293ebd2036ab5e26725ebd0d3cf730fde89a3e (patch) | |
| tree | 1c53f51f366093caa0931a775cdaf72d6309916a | |
| parent | 184b08a49f5b2db6c77ba0a96991b3384ccf9d86 (diff) | |
| download | cgeo-76293ebd2036ab5e26725ebd0d3cf730fde89a3e.zip cgeo-76293ebd2036ab5e26725ebd0d3cf730fde89a3e.tar.gz cgeo-76293ebd2036ab5e26725ebd0d3cf730fde89a3e.tar.bz2 | |
refactoring: remove double negation
| -rw-r--r-- | main/src/cgeo/geocaching/sensors/GeoData.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/sensors/GeoData.java b/main/src/cgeo/geocaching/sensors/GeoData.java index 561c09f..d39b3ed 100644 --- a/main/src/cgeo/geocaching/sensors/GeoData.java +++ b/main/src/cgeo/geocaching/sensors/GeoData.java @@ -31,10 +31,10 @@ public class GeoData extends Location implements IGeoData { @Nullable static Location best(@Nullable final Location gpsLocation, @Nullable final Location netLocation) { - if (isRecent(gpsLocation) || !(netLocation != null)) { + if (isRecent(gpsLocation) || netLocation == null) { return gpsLocation; } - if (!(gpsLocation != null)) { + if (gpsLocation == null) { return netLocation; } return gpsLocation.getTime() >= netLocation.getTime() ? gpsLocation : netLocation; |
