Skip to content

Commit

Permalink
fixup! src,lib: reducing C++ calls of esm legacy main resolve
Browse files Browse the repository at this point in the history
Backport-PR-URL: nodejs#48325
  • Loading branch information
H4ad committed Sep 14, 2023
1 parent 4886525 commit aed4c4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/node_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2635,8 +2635,9 @@ static bool FileURLToPath(
for (size_t i = 0; i < pathname_size; i++) {
if (pathname[i] == '/') {
pathname_escaped_slash += '\\';
} else
} else {
pathname_escaped_slash += pathname[i];
}

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

Expand Down

0 comments on commit aed4c4b

Please sign in to comment.