mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
no need to append space, as strings can be quoted
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user