Skip to content

Commit 6041f59

Browse files
committed
Corrected a misleading comment
1 parent b0eefec commit 6041f59

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sprint-3/1-implement-and-rewrite-tests/implement/1-get-angle-type.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ function getAngleType(angle) {
2323
else if (angle > 180 && angle < 360){
2424
return "Reflex angle";
2525
}
26+
else {
27+
throw new Error("Invalid angle");
28+
}
29+
2630
}
2731

2832
// Run the tests, work out what Case 2 is testing, and implement the required code here.

0 commit comments

Comments
 (0)