diff options
author | cyBerta <cyberta@riseup.net> | 2019-07-12 18:15:49 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2019-07-12 18:15:49 +0200 |
commit | 58a1aec0a220d1b516cc0d01fbf93623984d9c29 (patch) | |
tree | c6b6284f9d5c48d12686a96557789c5aee2fe081 | |
parent | 6abe74c4344269b13abd169dca1961bdf86bfedb (diff) |
cleanup: undo unnecessary if-clause nesting
-rw-r--r-- | app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java | 6 |
1 files 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) { |