Skip to content

Commit

Permalink
Fix lint error about unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstace committed May 13, 2022
1 parent 9459fd8 commit 95b2795
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions geom/alg_relate.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,18 @@ func Relate(a, b Geometry) (string, error) {
}

var flip bool
nonEmpty := b
if b.IsEmpty() {
b, a = a, b
nonEmpty = a
flip = true
}
switch b.Dimension() {
switch nonEmpty.Dimension() {
case 0:
im.set(imExterior, imInterior, '0')
im.set(imExterior, imBoundary, 'F')
case 1:
im.set(imExterior, imInterior, '1')
if !b.Boundary().IsEmpty() {
if !nonEmpty.Boundary().IsEmpty() {
im.set(imExterior, imBoundary, '0')
}
case 2:
Expand Down

0 comments on commit 95b2795

Please sign in to comment.