lib: removed unused variable
This change removes a variable that is not being used in the file. PR-URL: https://github.com/nodejs/node/pull/23497 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
f8af209f42
commit
656a0acafd
@ -458,7 +458,7 @@ Object.defineProperties(URL.prototype, {
|
||||
if (ctx.path.length > 0) {
|
||||
try {
|
||||
return (new URL(ctx.path[0])).origin;
|
||||
} catch (err) {
|
||||
} catch {
|
||||
// fall through... do nothing
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user