Simplifying boolean returns (#3796)

* Simplifying boolean returns

* add comment back
This commit is contained in:
Nathan Cheshire
2022-12-17 21:03:09 -06:00
committed by GitHub
parent fb09eb289e
commit c6694fc1bd
3 changed files with 6 additions and 25 deletions

View File

@ -33,10 +33,6 @@ public class DudeneyNumber {
}
//If the cube root of the number is not equal to the sum of its digits we return false.
if (cube_root != sum_of_digits) {
return false;
}
return true;
return cube_root == sum_of_digits;
}
}