From 2ce2f4e3634001a3731ca369f6f7596dd8162413 Mon Sep 17 00:00:00 2001 From: Aaron Kimbre Date: Thu, 2 Jan 2025 18:01:45 -0600 Subject: [PATCH] remove uneeded make_optional --- dCommon/GeneralUtils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dCommon/GeneralUtils.h b/dCommon/GeneralUtils.h index 5f93f7f3..3ab0caea 100644 --- a/dCommon/GeneralUtils.h +++ b/dCommon/GeneralUtils.h @@ -271,7 +271,7 @@ namespace GeneralUtils { template [[nodiscard]] std::optional TryParse(const std::string_view str) { try { - return std::make_optional(json::parse(str)); + return json::parse(str); } catch (const std::exception& e) { return std::nullopt; }