From 6a0097a519c235d9487a1af2f0050a79fd8a804f Mon Sep 17 00:00:00 2001 From: Adam Dempsey Date: Thu, 31 Oct 2024 07:38:34 -0600 Subject: [PATCH] Remove else from if constexpr when there are returns --- src/utils/hash.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/hash.hpp b/src/utils/hash.hpp index 77642a64dba3..4f1ff6557c74 100644 --- a/src/utils/hash.hpp +++ b/src/utils/hash.hpp @@ -31,9 +31,8 @@ std::size_t hash_combine(std::size_t lhs, const T &v, Rest &&...rest) { lhs ^= rhs + 0x9e3779b9 + (lhs << 6) + (lhs >> 2); if constexpr (sizeof...(Rest) > 0) { return hash_combine(lhs, std::forward(rest)...); - } else { - return lhs; } + return lhs; } template ::value - 1>