From 7079675d94e799b7009ed1ebe488d3b4d853d452 Mon Sep 17 00:00:00 2001 From: fluttershy Date: Mon, 20 Jan 2025 15:14:27 +0500 Subject: [PATCH] deleted try catch --- libs/utils/functions.hpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libs/utils/functions.hpp b/libs/utils/functions.hpp index ad19ed9..9f0bf2c 100644 --- a/libs/utils/functions.hpp +++ b/libs/utils/functions.hpp @@ -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(); - } - catch (...) { - return "null"; - } + return str.is_null() ? str.dump() : str.get(); } }; #endif \ No newline at end of file