fix(viewer): block body for zone-shape forEach (useIterableCallbackReturn)
Main's biome config flags a callback returning a value; the ternary in the zone-shape forEach implicitly returned moveTo/lineTo. Use a block body. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
708fa5278e
commit
b7386f2dcb
@@ -569,7 +569,10 @@ export function GlbScene({
|
||||
const built: ZoneFill[] = []
|
||||
for (const entry of zoneEntries) {
|
||||
const shape = new THREE.Shape()
|
||||
entry.polygon.forEach(([x, z], i) => (i === 0 ? shape.moveTo(x, -z) : shape.lineTo(x, -z)))
|
||||
entry.polygon.forEach(([x, z], i) => {
|
||||
if (i === 0) shape.moveTo(x, -z)
|
||||
else shape.lineTo(x, -z)
|
||||
})
|
||||
shape.closePath()
|
||||
|
||||
const floorMaterial = createZoneFloorMaterial(entry.color)
|
||||
|
||||
Reference in New Issue
Block a user