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:
@ -340,7 +340,7 @@ const SystemActions = GObject.registerClass({
|
||||
try {
|
||||
const [canShutdown] = await this._session.CanShutdownAsync();
|
||||
this._canHavePowerOff = canShutdown;
|
||||
} catch (e) {
|
||||
} catch {
|
||||
this._canHavePowerOff = false;
|
||||
}
|
||||
this._updatePowerOff();
|
||||
|
Reference in New Issue
Block a user