Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
fix: include exception identifier in catch blocks (#25147)
Browse files Browse the repository at this point in the history
  • Loading branch information
wentokay authored May 12, 2022
1 parent 86ffd98 commit a38ce12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions web3.js/src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4847,7 +4847,7 @@ export class Connection {
try {
this.removeSignatureListener(clientSubscriptionId);
// eslint-disable-next-line no-empty
} catch {
} catch (_err) {
// Already removed.
}
}
Expand Down Expand Up @@ -4895,7 +4895,7 @@ export class Connection {
try {
this.removeSignatureListener(clientSubscriptionId);
// eslint-disable-next-line no-empty
} catch {
} catch (_err) {
// Already removed.
}
},
Expand Down
2 changes: 1 addition & 1 deletion web3.js/test/connection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
Expand Down

0 comments on commit a38ce12

Please sign in to comment.