Skip to content

Commit f519f30

Browse files
committed
fix: lint
1 parent d30dbbf commit f519f30

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/internal/modules/cjs/loader.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,12 @@ const {
6464
maybeCacheSourceMap,
6565
rekeySourceMap
6666
} = require('internal/source_map/source_map_cache');
67-
const { pathToFileURL, fileURLToPath, isURLInstance } = require('internal/url');
67+
const {
68+
pathToFileURL,
69+
fileURLToPath,
70+
isURLInstance,
71+
URL
72+
} = require('internal/url');
6873
const { deprecate } = require('internal/util');
6974
const vm = require('vm');
7075
const assert = require('internal/assert');
@@ -984,7 +989,7 @@ const absolutePathToUrlConverter = new URL('file://');
984989

985990
function wrapSafe(filename, content, cjsModuleInstance) {
986991
let filenameUrl = filename;
987-
if(path.isAbsolute(filename)) {
992+
if (path.isAbsolute(filename)) {
988993
absolutePathToUrlConverter.pathname = filename;
989994
filenameUrl = absolutePathToUrlConverter.href;
990995
}

0 commit comments

Comments
 (0)