Skip to content

Commit c8424cc

Browse files
fixup! src: fix require.resolve not considering paths . and .. relative
fix linting
1 parent ab8728d commit c8424cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/modules/cjs/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1969,7 +1969,7 @@ function createRequire(filename) {
19691969
* @returns {boolean} true if the path is relative, false otherwise
19701970
*/
19711971
function isRelative(path) {
1972-
if(StringPrototypeCharCodeAt(path, 0) !== CHAR_DOT) return false;
1972+
if (StringPrototypeCharCodeAt(path, 0) !== CHAR_DOT) { return false; }
19731973

19741974
return path === '.' || path === '..' ||
19751975
StringPrototypeStartsWith(path, './') ||

0 commit comments

Comments
 (0)