Skip to content

Commit

Permalink
Updated last return in is_factorial
Browse files Browse the repository at this point in the history
  • Loading branch information
ewd00010 authored Jun 9, 2023
1 parent d7bc8d0 commit 7548b13
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions math/check_factorial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ bool is_factorial(uint64_t n) {
* if n was the sum of a factorial then it should be divided until it
* becomes 1
*/
if (n == 1) {
return true;
} else {
return false;
}
return (n == 1)
}
} // namespace math

Expand Down

0 comments on commit 7548b13

Please sign in to comment.