fix: include exception identifier in `catch` blocks (#25147)
This commit is contained in:
parent
86ffd98827
commit
a38ce127ca
|
@ -4847,7 +4847,7 @@ export class Connection {
|
|||
try {
|
||||
this.removeSignatureListener(clientSubscriptionId);
|
||||
// eslint-disable-next-line no-empty
|
||||
} catch {
|
||||
} catch (_err) {
|
||||
// Already removed.
|
||||
}
|
||||
}
|
||||
|
@ -4895,7 +4895,7 @@ export class Connection {
|
|||
try {
|
||||
this.removeSignatureListener(clientSubscriptionId);
|
||||
// eslint-disable-next-line no-empty
|
||||
} catch {
|
||||
} catch (_err) {
|
||||
// Already removed.
|
||||
}
|
||||
},
|
||||
|
|
|
@ -3614,7 +3614,7 @@ describe('Connection', function () {
|
|||
await connection._rpcWebSocket.notify('ping');
|
||||
break;
|
||||
// eslint-disable-next-line no-empty
|
||||
} catch {}
|
||||
} catch (_err) {}
|
||||
await sleep(100);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue