Skip to content

Commit d81893e

Browse files
committed
refactor(io): fix misplaced comment
1 parent 0e89dc1 commit d81893e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/quick-lint-js/io/file-path.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,8 @@ std::string parent_path(std::string&& path) {
8787
return ".";
8888
}
8989

90-
std::string result_with_backslashes = std::filesystem::path(*wpath).string();
91-
9290
// Convert '\' back into '/' if necessary.
91+
std::string result_with_backslashes = std::filesystem::path(*wpath).string();
9392
#if !(defined(NDEBUG) && NDEBUG)
9493
{
9594
std::string path_with_backslashes = path;
@@ -102,6 +101,7 @@ std::string parent_path(std::string&& path) {
102101
path_with_backslashes.starts_with(result_with_backslashes));
103102
}
104103
#endif
104+
105105
return path.substr(0, result_with_backslashes.size());
106106
#endif
107107
}

0 commit comments

Comments
 (0)