Skip to content

Commit

Permalink
chore: remove unnecessary elvis, Update polygon.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Prozi committed Mar 1, 2024
1 parent d8fa9cb commit 01e5b17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bodies/polygon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class Polygon extends SATPolygon implements BBox, BodyProps {
) {
super(ensureVectorPoint(position), ensurePolygonPoints(points));

if (!points?.length) {
if (!points.length) {
throw new Error("No points in polygon");
}

Expand Down

0 comments on commit 01e5b17

Please sign in to comment.