From 6813e246cdf6a0719b4a7de8dd91aa4664be8d63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 17 Jun 2021 15:41:20 +0200 Subject: [PATCH] shellDBus: Remove bogus return statements g_dbus_method_invocation_return_value() doesn't have a return value. Part-of: --- js/ui/shellDBus.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index 39f142af9..48e7bb5b8 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -111,7 +111,7 @@ var GnomeShell = class { let [accel, modeFlags, grabFlags] = params; let sender = invocation.get_sender(); let bindingAction = this._grabAcceleratorForSender(accel, modeFlags, grabFlags, sender); - return invocation.return_value(GLib.Variant.new('(u)', [bindingAction])); + invocation.return_value(GLib.Variant.new('(u)', [bindingAction])); } GrabAcceleratorsAsync(params, invocation) { @@ -122,7 +122,7 @@ var GnomeShell = class { let [accel, modeFlags, grabFlags] = accels[i]; bindingActions.push(this._grabAcceleratorForSender(accel, modeFlags, grabFlags, sender)); } - return invocation.return_value(GLib.Variant.new('(au)', [bindingActions])); + invocation.return_value(GLib.Variant.new('(au)', [bindingActions])); } UngrabAcceleratorAsync(params, invocation) { @@ -130,7 +130,7 @@ var GnomeShell = class { let sender = invocation.get_sender(); let ungrabSucceeded = this._ungrabAcceleratorForSender(action, sender); - return invocation.return_value(GLib.Variant.new('(b)', [ungrabSucceeded])); + invocation.return_value(GLib.Variant.new('(b)', [ungrabSucceeded])); } UngrabAcceleratorsAsync(params, invocation) { @@ -141,7 +141,7 @@ var GnomeShell = class { for (let i = 0; i < actions.length; i++) ungrabSucceeded &= this._ungrabAcceleratorForSender(actions[i], sender); - return invocation.return_value(GLib.Variant.new('(b)', [ungrabSucceeded])); + invocation.return_value(GLib.Variant.new('(b)', [ungrabSucceeded])); } _emitAcceleratorActivated(action, device, timestamp) {