From c4b5ee759687713770c050e83f4931210ec0b194 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Wed, 15 May 2024 23:59:23 +0200 Subject: [PATCH] Remove some superfluous returns to pacify pylint --- qubes_config/global_config/global_config.py | 1 - qubes_config/global_config/policy_handler.py | 1 - qui/devices/actionable_widgets.py | 2 -- 3 files changed, 4 deletions(-) diff --git a/qubes_config/global_config/global_config.py b/qubes_config/global_config/global_config.py index e0b8b3f6..078df78e 100644 --- a/qubes_config/global_config/global_config.py +++ b/qubes_config/global_config/global_config.py @@ -429,7 +429,6 @@ def _page_switched(self, *_args): if not allow_switch: GLib.timeout_add(1, lambda: self.main_notebook.set_current_page( old_page_num)) - return def _ask_unsaved(self, description: str) -> Gtk.ResponseType: box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL) diff --git a/qubes_config/global_config/policy_handler.py b/qubes_config/global_config/policy_handler.py index a4ed9149..5d7d419a 100644 --- a/qubes_config/global_config/policy_handler.py +++ b/qubes_config/global_config/policy_handler.py @@ -459,7 +459,6 @@ def _save_raw(self, _widget): text=_("The following rules could not be parsed:\n") + error_message + "\n" ) - return def _cancel_raw(self, _widget): self.fill_raw(self.last_known_rules) diff --git a/qui/devices/actionable_widgets.py b/qui/devices/actionable_widgets.py index eb0ba8e8..34c69f0e 100644 --- a/qui/devices/actionable_widgets.py +++ b/qui/devices/actionable_widgets.py @@ -80,8 +80,6 @@ def __init__(self, *args, **kwargs): def widget_action(self, *_args): """What should happen when this widget is activated/clicked""" - if not self.actionable: - return ### ICONS