Skip to content

Commit fc44a87

Browse files
committed
removed unnecessary paranthesis
1 parent e311003 commit fc44a87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/thealgorithms/maths/UniformNumbers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static int uniformNumbers(int num) {
2222
}
2323

2424
public static int countUniformIntegers(int a, int b) {
25-
if (b > a && (b > 0 && a > 0)) {
25+
if (b > a && b > 0 && a > 0) {
2626
return uniformNumbers(b) - uniformNumbers(a - 1);
2727
} else if (b == a) {
2828
return 1;

0 commit comments

Comments
 (0)