Skip to content

Commit 51bb59d

Browse files
committed
Updated the Function and removed the optional Lines
1 parent 2ab5c7f commit 51bb59d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ function getAngleType(angle) {
2828
else if (angle > 180 && angle < 360) {
2929
return "Reflex angle";
3030
}
31-
else {
32-
return "Invalid angle"; // Optional: handles 0 or ≥ 360
33-
}
34-
}
31+
}
3532
// The line below allows us to load the getAngleType function into tests in other files.
3633
// This will be useful in the "rewrite tests with jest" step.
3734

0 commit comments

Comments
 (0)