We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67b6fc1 commit e10f820Copy full SHA for e10f820
1 file changed
ton-http-api/src/utils/common.hpp
@@ -13,18 +13,14 @@ namespace ton_http::utils {
13
using namespace ton;
14
15
inline std::optional<bool> stringToBool(std::string str) {
16
- std::cout << "Archival: " << str << std::endl;
17
if (str.empty()) {
18
return std::nullopt;
19
}
20
std::ranges::transform(str, str.begin(), ::tolower);
21
22
if (str == "y" || str == "yes" || str == "t" || str == "true" || str == "on" || str == "1") {
23
- std::cout << "ARCHIVAL" << std::endl;
24
return true;
25
26
if (str == "n" || str == "no" || str == "f" || str == "false" || str == "off" || str == "0") {
27
- std::cout << "NOT ARCHIVAL" << std::endl;
28
return false;
29
30
throw std::invalid_argument("failed to parse bool");
0 commit comments