deleted try catch

This commit is contained in:
fluttershy 2025-01-20 15:14:27 +05:00
parent b85478d64b
commit 7079675d94

View File

@ -2,12 +2,7 @@
#define UTILS_FUNCTIONS_HPP_
struct functions {
static inline std::string isNull(const nlohmann::json& str) {
try {
return str.is_null() ? str.dump() : str.get<std::string>();
}
catch (...) {
return "null";
}
return str.is_null() ? str.dump() : str.get<std::string>();
}
};
#endif