Skip to content

Commit b102fae

Browse files
committed
lint
1 parent 11594e3 commit b102fae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/internal/modules/esm/get_format.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const experimentalNetworkImports =
2222
const { containsModuleSyntax } = internalBinding('contextify');
2323
const { getPackageScopeConfig, getPackageType } = require('internal/modules/package_json_reader');
2424
const { fileURLToPath } = require('internal/url');
25-
const { readFileSync } = require('fs');
2625
const { ERR_UNKNOWN_FILE_EXTENSION } = require('internal/errors').codes;
2726

2827
const protocolHandlers = {

src/node_contextify.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1759,7 +1759,8 @@ static void ContainsModuleSyntax(const FunctionCallbackInfo<Value>& args) {
17591759
}
17601760

17611761
bool result = ShouldRetryAsESM(realm, message, code, resource_name);
1762-
if (result) { // successfully parsed as ESM after failing to parse as CJS => ESM syntax
1762+
if (result) {
1763+
// successfully parsed as ESM after failing to parse as CJS => ESM syntax
17631764
args.GetReturnValue().Set(result);
17641765
return;
17651766
}

0 commit comments

Comments
 (0)