Skip to content

Commit ca1ebbd

Browse files
committed
fix: lint
1 parent d31e761 commit ca1ebbd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/internal/modules/cjs/loader.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,12 @@ const {
7676
maybeCacheSourceMap,
7777
rekeySourceMap
7878
} = require('internal/source_map/source_map_cache');
79-
const { pathToFileURL, fileURLToPath, isURLInstance } = require('internal/url');
79+
const {
80+
pathToFileURL,
81+
fileURLToPath,
82+
isURLInstance,
83+
URL
84+
} = require('internal/url');
8085
const { deprecate } = require('internal/util');
8186
const vm = require('vm');
8287
const assert = require('internal/assert');
@@ -1009,7 +1014,7 @@ const absolutePathToUrlConverter = new URL('file://');
10091014

10101015
function wrapSafe(filename, content, cjsModuleInstance) {
10111016
let filenameUrl = filename;
1012-
if(path.isAbsolute(filename)) {
1017+
if (path.isAbsolute(filename)) {
10131018
absolutePathToUrlConverter.pathname = filename;
10141019
filenameUrl = absolutePathToUrlConverter.href;
10151020
}

0 commit comments

Comments
 (0)