Skip to content

Commit b808472

Browse files
committed
s2: Reformat code.
gofmt changed a little bit in a recent version of Go.
1 parent 5b97839 commit b808472

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

s2/max_distance_targets.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,10 @@ func (m *MaxDistanceToShapeIndexTarget) setMaxError(maxErr s1.ChordAngle) bool {
295295
}
296296
func (m *MaxDistanceToShapeIndexTarget) maxBruteForceIndexSize() int { return 70 }
297297
func (m *MaxDistanceToShapeIndexTarget) distance() distance { return m.dist }
298-
func (m *MaxDistanceToShapeIndexTarget) setIncludeInteriors(b bool) { m.query.opts.includeInteriors = b }
299-
func (m *MaxDistanceToShapeIndexTarget) setUseBruteForce(b bool) { m.query.opts.useBruteForce = b }
298+
func (m *MaxDistanceToShapeIndexTarget) setIncludeInteriors(b bool) {
299+
m.query.opts.includeInteriors = b
300+
}
301+
func (m *MaxDistanceToShapeIndexTarget) setUseBruteForce(b bool) { m.query.opts.useBruteForce = b }
300302

301303
// TODO(roberts): Remaining methods
302304
//

s2/min_distance_targets.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,10 @@ func (m *MinDistanceToShapeIndexTarget) setMaxError(maxErr s1.ChordAngle) bool {
351351
}
352352
func (m *MinDistanceToShapeIndexTarget) maxBruteForceIndexSize() int { return 25 }
353353
func (m *MinDistanceToShapeIndexTarget) distance() distance { return m.dist }
354-
func (m *MinDistanceToShapeIndexTarget) setIncludeInteriors(b bool) { m.query.opts.includeInteriors = b }
355-
func (m *MinDistanceToShapeIndexTarget) setUseBruteForce(b bool) { m.query.opts.useBruteForce = b }
354+
func (m *MinDistanceToShapeIndexTarget) setIncludeInteriors(b bool) {
355+
m.query.opts.includeInteriors = b
356+
}
357+
func (m *MinDistanceToShapeIndexTarget) setUseBruteForce(b bool) { m.query.opts.useBruteForce = b }
356358

357359
// TODO(roberts): Remaining methods
358360
//

0 commit comments

Comments
 (0)