From c2a0354e91953e32295e3f5763dffc7fbf43d3f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Drahn=C3=ADk?= Date: Tue, 11 Jul 2023 17:51:33 +0200 Subject: [PATCH] Clean up unused return value --- asus_touchpad.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/asus_touchpad.py b/asus_touchpad.py index cba1716..c944feb 100755 --- a/asus_touchpad.py +++ b/asus_touchpad.py @@ -212,11 +212,9 @@ def gsettingsSet(path, name, value): log.debug(cmd) subprocess.check_output(cmd) - return True except: log.exception('gsettings set failed') gsettings_is_here=False - return False def gsettingsGet(path, name): @@ -239,7 +237,7 @@ def gsettingsGetTouchpadSendEvents(): def gsettingsSetTouchpadTapToClick(value): - return gsettingsSet('org.gnome.desktop.peripherals.touchpad', 'tap-to-click', str(bool(value)).lower()) + gsettingsSet('org.gnome.desktop.peripherals.touchpad', 'tap-to-click', str(bool(value)).lower()) # Figure out devices from devices file @@ -638,7 +636,6 @@ def set_touchpad_prop_tap_to_click(value): if getting_device_via_xinput_status_failure_count > getting_device_via_xinput_status_max_failure_count: log.debug('Setting libinput Tapping EnabledDevice via xinput failed more then: \"%s\" times so is not try anymore', getting_device_via_xinput_status_max_failure_count) - return True try: cmd = ["xinput", "set-prop", touchpad_name, 'libinput Tapping Enabled', str(value)]