Skip to content

Commit 3a1addf

Browse files
committed
fixup! src,lib: reducing C++ calls of esm legacy main resolve
Backport-PR-URL: #48325
1 parent 9bfc75e commit 3a1addf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/node_file.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -2635,8 +2635,9 @@ static bool FileURLToPath(
26352635
for (size_t i = 0; i < pathname_size; i++) {
26362636
if (pathname[i] == '/') {
26372637
pathname_escaped_slash += '\\';
2638-
} else
2638+
} else {
26392639
pathname_escaped_slash += pathname[i];
2640+
}
26402641

26412642
if (pathname[i] != '%') continue;
26422643

0 commit comments

Comments
 (0)