fix
This commit is contained in:
parent
3ed99dc0ce
commit
db009b69dd
@ -61,10 +61,10 @@ auto combine(std::string path, const std::vector<std::string> &paths)
|
|||||||
return finalize(
|
return finalize(
|
||||||
std::accumulate(paths.begin(), paths.end(), path,
|
std::accumulate(paths.begin(), paths.end(), path,
|
||||||
[](std::string next_path, const auto &path_part) {
|
[](std::string next_path, const auto &path_part) {
|
||||||
if (not next_path.empty()) {
|
if (next_path.empty()) {
|
||||||
next_path += (directory_seperator + path_part);
|
return path_part;
|
||||||
}
|
}
|
||||||
return next_path;
|
return next_path + (directory_seperator + path_part);
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user