no need to append space, as strings can be quoted

This commit is contained in:
proddy
2024-07-10 13:12:18 +02:00
parent 7b80524a5a
commit 4a2036d588
2 changed files with 9 additions and 7 deletions

View File

@@ -571,12 +571,9 @@ std::string calculate(const std::string & expr) {
std::string result = "";
for (const auto & s : stack) {
result += s;
if (s != stack.back()) {
result += " ";
}
}
return result;
// return stack.back();
}