js: Remove unused catch bindings
Optional catch bindings have been supported for quite a while now, so we can treat unused error bindings in catch statements like any other unused variable. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3684>
This commit is contained in:
@ -123,7 +123,7 @@ const BackgroundAppMenuItem = GObject.registerClass({
|
||||
|
||||
try {
|
||||
await this.app.activate_action('quit', null, 0, -1, null);
|
||||
} catch (_error) {
|
||||
} catch {
|
||||
try {
|
||||
const appId = this.app.get_id().replace(/\.desktop$/, '');
|
||||
Util.trySpawn(['flatpak', 'kill', appId]);
|
||||
|
Reference in New Issue
Block a user