Skip to content

Commit 53127b3

Browse files
committed
Rename min/max to lo/hi to avoid predeclared linter warning
1 parent 8b5b3ed commit 53127b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

geos/entrypoints.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,9 @@ func ConcaveHull(g geom.Geometry, concavenessRatio float64, allowHoles bool) (ge
338338
//
339339
// The validity of the result is not checked.
340340
func ClipByRect(g geom.Geometry, rect geom.Envelope) (geom.Geometry, error) {
341-
min, max, ok := rect.MinMaxXYs()
341+
lo, hi, ok := rect.MinMaxXYs()
342342
if !ok {
343343
return geom.Geometry{}, nil
344344
}
345-
return rawgeos.ClipByRect(g, min.X, min.Y, max.X, max.Y)
345+
return rawgeos.ClipByRect(g, lo.X, lo.Y, hi.X, hi.Y)
346346
}

0 commit comments

Comments
 (0)