Skip to content

Commit

Permalink
module: remove duplicated import
Browse files Browse the repository at this point in the history
  • Loading branch information
Aviv Keller authored Sep 14, 2024
1 parent efbba60 commit 00f2528
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/internal/modules/run_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ function resolveMainPath(main) {
} catch (err) {
if (defaultType === 'module' && err?.code === 'ENOENT') {
const { decorateErrorWithCommonJSHints } = require('internal/modules/esm/resolve');
const { getCWDURL } = require('internal/util');
decorateErrorWithCommonJSHints(err, mainPath, getCWDURL());
}
throw err;
Expand Down

0 comments on commit 00f2528

Please sign in to comment.