fix: include exception identifier in `catch` blocks (#25147)

This commit is contained in:
wentokay 2022-05-11 23:32:02 -04:00 committed by GitHub
parent 86ffd98827
commit a38ce127ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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.
}
},

View File

@ -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);
}
});