Skip to content

Commit 563f7fe

Browse files
authored
Remove duplicated return statement in area_reg_polygon (#14362)
Co-authored-by: cclauss <3709715+cclauss@users.noreply.github.com>
1 parent af389b0 commit 563f7fe

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

maths/area.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,6 @@ def area_reg_polygon(sides: int, length: float) -> float:
552552
length of a side"
553553
)
554554
return (sides * length**2) / (4 * tan(pi / sides))
555-
return (sides * length**2) / (4 * tan(pi / sides))
556555

557556

558557
if __name__ == "__main__":

0 commit comments

Comments
 (0)