From 5f67ef4d6f2c1760562f2931bee13990da11d43e Mon Sep 17 00:00:00 2001 From: Sandor Magyar Date: Tue, 18 Oct 2022 20:25:32 -0400 Subject: [PATCH] Remove pointless try block in mongo_sink --- include/spdlog/sinks/mongo_sink.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/spdlog/sinks/mongo_sink.h b/include/spdlog/sinks/mongo_sink.h index b8928d67..36201f5c 100644 --- a/include/spdlog/sinks/mongo_sink.h +++ b/include/spdlog/sinks/mongo_sink.h @@ -31,8 +31,7 @@ class mongo_sink : public base_sink { public: mongo_sink(const std::string &db_name, const std::string &collection_name, const std::string &uri = "mongodb://localhost:27017") - try : mongo_sink(std::make_shared(), db_name, collection_name, uri) {} - catch (...) {} // Re-throws exception + : mongo_sink(std::make_shared(), db_name, collection_name, uri) {} mongo_sink(const std::shared_ptr &instance, const std::string &db_name, const std::string &collection_name, const std::string &uri = "mongodb://localhost:27017") : instance_(instance)