Skip to content

Commit

Permalink
esm: remove unused catch bindings
Browse files Browse the repository at this point in the history
PR-URL: #24079
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Wyatt Preul <wpreul@gmail.com>
  • Loading branch information
cjihrig authored and targos committed Nov 6, 2018
1 parent 1f3cb63 commit 2d84f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/modules/esm/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Loader {
if (this._resolve !== defaultResolve) {
try {
new URL(url);
} catch (e) {
} catch {
throw new ERR_INVALID_RETURN_PROPERTY(
'url', 'loader resolve', 'url', url
);
Expand Down

0 comments on commit 2d84f45

Please sign in to comment.