Skip to content

Commit 6166064

Browse files
committed
simplified return statement in proper-fractoin
1 parent 3c8fe4f commit 6166064

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Sprint-3/1-implement-and-rewrite-tests/implement/2-is-proper-fraction.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@
88
// write one test at a time, and make it pass, build your solution up methodically
99

1010
function isProperFraction(numerator, denominator) {
11-
if (Math.abs(numerator) < Math.abs(denominator)) {
12-
return true;
13-
} else {
14-
return false;
15-
}
11+
return Math.abs(numerator) < Math.abs(denominator);
1612
}
1713

1814
// The line below allows us to load the isProperFraction function into tests in other files.

0 commit comments

Comments
 (0)