Skip to content

Commit

Permalink
fix min polygon points conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
saulortega authored and stephenafamo committed Apr 20, 2022
1 parent 445f482 commit d6eae87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/pgeo/polygon.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func scanPolygon(p *Polygon, src interface{}) error {
return err
}

if len(*p) <= 1 {
if len(*p) < 1 {
return errors.New("wrong polygon")
}

Expand Down

0 comments on commit d6eae87

Please sign in to comment.