From db009b69dd09efccf8bd18daf0bffc39021db76c Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sat, 11 Nov 2023 21:24:15 -0600 Subject: [PATCH] fix --- src/utils/path_utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/path_utils.cpp b/src/utils/path_utils.cpp index 9020178b..05535d5e 100644 --- a/src/utils/path_utils.cpp +++ b/src/utils/path_utils.cpp @@ -61,10 +61,10 @@ auto combine(std::string path, const std::vector &paths) return finalize( std::accumulate(paths.begin(), paths.end(), path, [](std::string next_path, const auto &path_part) { - if (not next_path.empty()) { - next_path += (directory_seperator + path_part); + if (next_path.empty()) { + return path_part; } - return next_path; + return next_path + (directory_seperator + path_part); })); }