Skip to content

Commit 0da03f0

Browse files
anonrigRafaelGSS
authored andcommitted
lib: remove duplicated requires in check_syntax
PR-URL: #48508 Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 2b141c4 commit 0da03f0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/internal/main/check_syntax.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// instead of actually running the file.
55

66
const { getOptionValue } = require('internal/options');
7-
const { URL } = require('internal/url');
7+
const { URL, pathToFileURL } = require('internal/url');
88
const {
99
prepareMainThreadExecution,
1010
markBootstrapComplete,
@@ -14,8 +14,6 @@ const {
1414
readStdin,
1515
} = require('internal/process/execution');
1616

17-
const { pathToFileURL } = require('url');
18-
1917
const {
2018
Module: {
2119
_resolveFilename: resolveCJSModuleName,
@@ -49,7 +47,6 @@ if (process.argv[1] && process.argv[1] !== '-') {
4947
}
5048

5149
function loadESMIfNeeded(cb) {
52-
const { getOptionValue } = require('internal/options');
5350
const hasModulePreImport = getOptionValue('--import').length > 0;
5451

5552
if (hasModulePreImport) {

0 commit comments

Comments
 (0)