deleted try catch
This commit is contained in:
parent
b85478d64b
commit
7079675d94
@ -2,12 +2,7 @@
|
|||||||
#define UTILS_FUNCTIONS_HPP_
|
#define UTILS_FUNCTIONS_HPP_
|
||||||
struct functions {
|
struct functions {
|
||||||
static inline std::string isNull(const nlohmann::json& str) {
|
static inline std::string isNull(const nlohmann::json& str) {
|
||||||
try {
|
return str.is_null() ? str.dump() : str.get<std::string>();
|
||||||
return str.is_null() ? str.dump() : str.get<std::string>();
|
|
||||||
}
|
|
||||||
catch (...) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
Reference in New Issue
Block a user