Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0da03f0

Browse filesBrowse files
anonrigRafaelGSS
authored andcommitted
lib: remove duplicated requires in check_syntax
PR-URL: #48508 Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 2b141c4 commit 0da03f0
Copy full SHA for 0da03f0

File tree

Expand file treeCollapse file tree

1 file changed

+1
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-4
lines changed
Open diff view settings
Collapse file

‎lib/internal/main/check_syntax.js‎

Copy file name to clipboardExpand all lines: lib/internal/main/check_syntax.js
+1-4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.