summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorcyberta <cyberta@riseup.net>2020-01-21 16:45:03 -0600
committercyberta <cyberta@riseup.net>2020-01-21 16:45:03 -0600
commit7235d8505978143df6edfc7c8a53c7c4f8c9a848 (patch)
tree2b99e2589d31e1cfa8f2d2117e51912d28383f00 /app
parent6a015d337d6a786adb319c3f9de7b9b7e9ae80bb (diff)
remove unnecessary null check
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/DnsResolver.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/DnsResolver.java b/app/src/main/java/se/leap/bitmaskclient/DnsResolver.java
index 55cf1123..069318a4 100644
--- a/app/src/main/java/se/leap/bitmaskclient/DnsResolver.java
+++ b/app/src/main/java/se/leap/bitmaskclient/DnsResolver.java
@@ -21,7 +21,7 @@ class DnsResolver implements Dns {
} else {
currentProvider = observable.getCurrentProvider();
}
- if (currentProvider != null && currentProvider.hasProviderIp()) {
+ if (currentProvider.hasProviderIp()) {
ArrayList<InetAddress> addresses = new ArrayList<>();
addresses.add(InetAddress.getByAddress(hostname, currentProvider.getProviderIpAsBytes()));
return addresses;