From 1809f15206c4759de5cf902fd021d0681d1ff3e0 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 ca401044c0178c..4ad694debfc72f 100644 --- a/lib/internal/modules/run_main.js +++ b/lib/internal/modules/run_main.js @@ -44,7 +44,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;