From c4319f7b361f870eeb2ac2d5d0640d1ae3ac5353 Mon Sep 17 00:00:00 2001 From: Carlos Zoft Date: Thu, 10 Feb 2022 13:18:11 -0300 Subject: [PATCH] fix: power_of_two algorithm redundant conditional 'else' --- math/power_of_two.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/math/power_of_two.cpp b/math/power_of_two.cpp index 85a2bc65a..96612d790 100644 --- a/math/power_of_two.cpp +++ b/math/power_of_two.cpp @@ -46,9 +46,9 @@ int power_of_two(int n) { if (result == 0) { return 1; - } else { - return 0; } + + return 0; } } // namespace math