Skip to content

Commit d1a23cc

Browse files
UNLRNjasnell
authored andcommitted
tls: update try catch syntax
try catch syntax allows elimination of function arguments so removed unused err argument PR-URL: #23484 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent a797923 commit d1a23cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tls.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ exports.checkServerIdentity = function checkServerIdentity(hostname, cert) {
176176
let uri;
177177
try {
178178
uri = new URL(name.slice(4));
179-
} catch (err) {
179+
} catch {
180180
uri = url.parse(name.slice(4));
181181
if (!urlWarningEmitted && !process.noDeprecation) {
182182
urlWarningEmitted = true;

0 commit comments

Comments
 (0)