From 12f92b04f4dc7f48b78c0b1ef81ed5bdb5791e1d Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Sun, 22 Sep 2024 05:36:56 -0400 Subject: [PATCH] module: remove duplicated import PR-URL: https://github.com/nodejs/node/pull/54942 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Luigi Pinca Reviewed-By: Matteo Collina Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat --- lib/internal/modules/run_main.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/internal/modules/run_main.js b/lib/internal/modules/run_main.js index 1e1a1ea46fc..724bc18e9a0 100644 --- a/lib/internal/modules/run_main.js +++ b/lib/internal/modules/run_main.js @@ -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;