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 <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent a797923 commit d1a23cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)