We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e89dc1 commit d81893eCopy full SHA for d81893e
src/quick-lint-js/io/file-path.cpp
@@ -87,9 +87,8 @@ std::string parent_path(std::string&& path) {
87
return ".";
88
}
89
90
- std::string result_with_backslashes = std::filesystem::path(*wpath).string();
91
-
92
// Convert '\' back into '/' if necessary.
+ std::string result_with_backslashes = std::filesystem::path(*wpath).string();
93
#if !(defined(NDEBUG) && NDEBUG)
94
{
95
std::string path_with_backslashes = path;
@@ -102,6 +101,7 @@ std::string parent_path(std::string&& path) {
102
101
path_with_backslashes.starts_with(result_with_backslashes));
103
104
#endif
+
105
return path.substr(0, result_with_backslashes.size());
106
107
0 commit comments