diff --git a/common/unit_test/Test_Common_LowerBound.hpp b/common/unit_test/Test_Common_LowerBound.hpp index f2b54eed32..220d86aa4e 100644 --- a/common/unit_test/Test_Common_LowerBound.hpp +++ b/common/unit_test/Test_Common_LowerBound.hpp @@ -193,9 +193,8 @@ void test_lower_bound() { auto randn = [](T n) { if constexpr (std::is_floating_point_v) { return T(rand()) / T(RAND_MAX) * n; - } else { - return T(rand()) % n; } + return T(rand()) % n; }; T maxEntry = 20; diff --git a/common/unit_test/Test_Common_UpperBound.hpp b/common/unit_test/Test_Common_UpperBound.hpp index b99ffbb0a6..1d048f2c46 100644 --- a/common/unit_test/Test_Common_UpperBound.hpp +++ b/common/unit_test/Test_Common_UpperBound.hpp @@ -182,9 +182,8 @@ void test_upper_bound() { auto randn = [](T n) { if constexpr (std::is_floating_point_v) { return T(rand()) / T(RAND_MAX) * n; - } else { - return T(rand()) % n; } + return T(rand()) % n; }; constexpr T maxEntry = 20;