diff --git a/staslib/service.py b/staslib/service.py index 19acec3..8a10ada 100644 --- a/staslib/service.py +++ b/staslib/service.py @@ -809,11 +809,7 @@ def _config_ctrls_finish(self, configured_ctrl_list: list): origin = ( 'configured' if tid in configured_ctrl_list - else 'referral' - if tid in referral_ctrl_list - else 'discovered' - if tid in discovered_ctrl_list - else None + else 'referral' if tid in referral_ctrl_list else 'discovered' if tid in discovered_ctrl_list else None ) if origin is not None: controller.origin = origin diff --git a/test/test-udev.py b/test/test-udev.py index 9621edc..2f29471 100755 --- a/test/test-udev.py +++ b/test/test-udev.py @@ -200,8 +200,7 @@ def get_tids_to_test(family, src_ip, ifname): ] -class DummyDevice: - ... +class DummyDevice: ... class Test(unittest.TestCase):