From 194a0de01eeeff73b90ee3c165cd7b1cbdd4a04e Mon Sep 17 00:00:00 2001 From: Elias Bachaalany Date: Thu, 23 Jan 2025 08:43:44 -0800 Subject: [PATCH] minor --- src/common/utils/function.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/common/utils/function.hpp b/src/common/utils/function.hpp index 82e4fda0..f7905232 100644 --- a/src/common/utils/function.hpp +++ b/src/common/utils/function.hpp @@ -39,12 +39,10 @@ namespace utils { return func(std::forward(args)...); } - else + + if constexpr (!std::is_void_v) { - if constexpr (!std::is_void_v) - { - return Ret(); - } + return Ret(); } }