nic: fix syntax

This commit is contained in:
Ludwig Behm 2023-11-10 16:48:05 +01:00
parent 8cc7c9de9b
commit c3d4fce74c
Signed by: l.behm
GPG key ID: D344835D63B89384

View file

@ -91,9 +91,7 @@ class Module(core.module.Module):
def _iswlan(self, intf):
# wifi, wlan, wlp, seems to work for me
if intf.startswith("w") and not intf.startswith("wwan"):
return True
return False
return intf.startswith("w") and not intf.startswith("wwan")
def _istunnel(self, intf):
return intf.startswith("tun") or intf.startswith("wg")