deleted try catch
This commit is contained in:
parent
b85478d64b
commit
7079675d94
@ -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
|
Loading…
x
Reference in New Issue
Block a user