Skip to content

Commit d6d0c72

Browse files
committed
made change again
1 parent dc62cf6 commit d6d0c72

File tree

1 file changed

+1
-0
lines changed
  • src/main/java/com/thealgorithms/maths

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ public static double surfaceAreaCone(final double radius, final double height) {
202202
*/
203203
public static double surfaceAreaPyramid(final double sideLength, final double slantHeight) {
204204
if (sideLength <= 0) {
205+
205206
throw new IllegalArgumentException("Must be a positive sideLength");
206207
}
207208
if (slantHeight <= 0) {

0 commit comments

Comments
 (0)