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:
Florian Müllner
2025-04-01 16:16:07 +02:00
committed by Bruce Leidl
parent a7410d82ac
commit 60aa4319d9
35 changed files with 56 additions and 56 deletions

View File

@ -667,7 +667,7 @@ export class ExtensionManager extends Signals.EventEmitter {
try {
FileUtils.recursivelyDeleteDir(extensionDir, false);
FileUtils.recursivelyMoveDir(dir, extensionDir);
} catch (e) {
} catch {
log(`Failed to install extension updates for ${uuid}`);
} finally {
FileUtils.recursivelyDeleteDir(dir, true);