From 7235d8505978143df6edfc7c8a53c7c4f8c9a848 Mon Sep 17 00:00:00 2001 From: cyberta Date: Tue, 21 Jan 2020 16:45:03 -0600 Subject: remove unnecessary null check --- app/src/main/java/se/leap/bitmaskclient/DnsResolver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/java/se/leap/bitmaskclient') 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 addresses = new ArrayList<>(); addresses.add(InetAddress.getByAddress(hostname, currentProvider.getProviderIpAsBytes())); return addresses; -- cgit v1.2.3