Skip to content

Commit 2f92071

Browse files
committed
chore: use optional catch binding
1 parent acb63c2 commit 2f92071

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/shared/authorization_error_handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default (provider) => {
5555
if (!oidc.client && safe(params.client_id) && !ctx.oidc.noclient) {
5656
try {
5757
oidc.entity('Client', await provider.Client.find(safe(params.client_id)));
58-
} catch (_e) {}
58+
} catch {}
5959
}
6060

6161
for (const [param, {

test/certificate_bound_access_tokens/certificate_bound_access_tokens.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ merge(config.features, {
1313
getCertificate(ctx) {
1414
try {
1515
return new X509Certificate(Buffer.from(ctx.get('x-ssl-client-cert'), 'base64'));
16-
} catch (_e) {
16+
} catch {
1717
return undefined;
1818
}
1919
},

test/client_auth/client_auth.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ merge(config.features, {
7575
getCertificate(ctx) {
7676
try {
7777
return new X509Certificate(Buffer.from(ctx.get('x-ssl-client-cert'), 'base64'));
78-
} catch (_e) {
78+
} catch {
7979
return undefined;
8080
}
8181
},

0 commit comments

Comments
 (0)