This is an automated email from the ASF dual-hosted git repository.

elsloo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git

commit 010d8267292728c20b69e6cb1063fa3c52e24597
Author: Jesse Rivas <jesse_ri...@comcast.com>
AuthorDate: Mon Feb 12 15:07:56 2018 -0700

    code cleanup
---
 .../cdn/traffic_control/traffic_router/core/router/TrafficRouter.java   | 2 +-
 .../cdn/traffic_control/traffic_router/geolocation/Geolocation.java     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/traffic_router/core/src/main/java/com/comcast/cdn/traffic_control/traffic_router/core/router/TrafficRouter.java
 
b/traffic_router/core/src/main/java/com/comcast/cdn/traffic_control/traffic_router/core/router/TrafficRouter.java
index 9aee1cb..17d5605 100644
--- 
a/traffic_router/core/src/main/java/com/comcast/cdn/traffic_control/traffic_router/core/router/TrafficRouter.java
+++ 
b/traffic_router/core/src/main/java/com/comcast/cdn/traffic_control/traffic_router/core/router/TrafficRouter.java
@@ -325,7 +325,7 @@ public class TrafficRouter {
                        }
                }
 
-               if (clientLocation.isDefault() == true && 
defaultGeolocations.containsKey(clientLocation.getCountryCode())) {
+               if (clientLocation.isDefault() && 
defaultGeolocations.containsKey(clientLocation.getCountryCode())) {
                        clientLocation = 
defaultGeolocations.get(clientLocation.getCountryCode());
                }
 
diff --git 
a/traffic_router/geolocation/src/main/java/com/comcast/cdn/traffic_control/traffic_router/geolocation/Geolocation.java
 
b/traffic_router/geolocation/src/main/java/com/comcast/cdn/traffic_control/traffic_router/geolocation/Geolocation.java
index fed07af..3b2f6f4 100644
--- 
a/traffic_router/geolocation/src/main/java/com/comcast/cdn/traffic_control/traffic_router/geolocation/Geolocation.java
+++ 
b/traffic_router/geolocation/src/main/java/com/comcast/cdn/traffic_control/traffic_router/geolocation/Geolocation.java
@@ -31,7 +31,7 @@ public class Geolocation {
        private String city;
        private String countryCode;
        private String countryName;
-       private boolean isDefault;
+       private boolean isDefault = false;
 
        /**
         * Creates an immutable {@link Geolocation}.

-- 
To stop receiving notification emails like this one, please contact
els...@apache.org.

Reply via email to