From c3d4fce74c5f482919e75da955f274390b9437cc Mon Sep 17 00:00:00 2001 From: Ludwig Behm Date: Fri, 10 Nov 2023 16:48:05 +0100 Subject: [PATCH] nic: fix syntax --- bumblebee_status/modules/core/nic.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bumblebee_status/modules/core/nic.py b/bumblebee_status/modules/core/nic.py index 64ee226..3f77c89 100644 --- a/bumblebee_status/modules/core/nic.py +++ b/bumblebee_status/modules/core/nic.py @@ -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")