From 0f5b36d437ed780a92f1915ed7c096cb17743753 Mon Sep 17 00:00:00 2001 From: Carlos Rafael Date: Thu, 10 Feb 2022 13:51:06 -0300 Subject: [PATCH] fix: power_of_two algorithm redundant conditional 'else' (#1936) --- 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