From 58a1aec0a220d1b516cc0d01fbf93623984d9c29 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Fri, 12 Jul 2019 18:15:49 +0200 Subject: cleanup: undo unnecessary if-clause nesting --- app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java b/app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java index bf9b3ac3..82c4e1df 100644 --- a/app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java +++ b/app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java @@ -539,10 +539,8 @@ public class OpenVPNService extends VpnService implements StateListener, Callbac VpnStatus.logInfo(R.string.last_openvpn_tun_config); - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { - if (mProfile.mAllowLocalLAN) { - allowAllAFFamilies(builder); - } + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && mProfile.mAllowLocalLAN) { + allowAllAFFamilies(builder); } if (mLocalIP == null && mLocalIPv6 == null) { -- cgit v1.2.3