[gnome-shell/gnome-3-38] shellDBus: Remove bogus return statements
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-38] shellDBus: Remove bogus return statements
- Date: Fri, 9 Jul 2021 22:23:19 +0000 (UTC)
commit 162926d9785693c4319501ba12b50699d5bcaa6e
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Jun 17 15:41:20 2021 +0200
shellDBus: Remove bogus return statements
g_dbus_method_invocation_return_value() doesn't have a return value.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1891>
(cherry picked from commit 6813e246cdf6a0719b4a7de8dd91aa4664be8d63)
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 75a2f341d0..f672ae73cf 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]