Skip to content

Commit

Permalink
Fix the unchanged return value in combine()
Browse files Browse the repository at this point in the history
  • Loading branch information
LupertEverett authored and dpjudas committed Dec 31, 2023
1 parent c4192c2 commit 94d3ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SurrealEngine/File.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ std::string FilePath::combine(const std::string &path1, const std::string &path2
else if (path2_conv.empty())
return path1_conv;
else if (path2_conv.front() == '/')
return path2;
return path2_conv;
else if (path1_conv.back() != '/')
return path1_conv + "/" + path2_conv;
else
Expand Down

0 comments on commit 94d3ea1

Please sign in to comment.