Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rivasj committed Feb 12, 2018
1 parent c614cf1 commit 2b2a8df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -325,7 +325,7 @@ public List<Cache> selectCachesByGeo(final String clientIp, final DeliveryServic
}
}

if (clientLocation.isDefault() == true && defaultGeolocations.containsKey(clientLocation.getCountryCode())) {
if (clientLocation.isDefault() && defaultGeolocations.containsKey(clientLocation.getCountryCode())) {
clientLocation = defaultGeolocations.get(clientLocation.getCountryCode());
}

Expand Down
Expand Up @@ -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}.
Expand Down

0 comments on commit 2b2a8df

Please sign in to comment.