Simplify: without a give-up the bisection can only have closed on the resolution

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016jxMkwA2rbicdGxHosecYi
This commit is contained in:
2026-09-18 12:56:51 +02:00
co-authored by Claude Opus 5
parent 862fb65ea4
commit 7971ec4007
+2 -1
View File
@@ -258,7 +258,8 @@ export function minimumRangeBetween(index: StarNeighbourhood, fromId: number, to
giveUps += gaveUp ? 1 : 0; giveUps += gaveUp ? 1 : 0;
} }
} }
return { rangePc: reachable, least: giveUps === 0 && reachable - unreachable <= RANGE_RESOLUTION_PC }; // Without a give-up the loop can only have ended by closing on the resolution, so that is the least.
return { rangePc: reachable, least: giveUps === 0 };
} }
/** How much of a graph to keep: the links nearest a point, up to a total length. */ /** How much of a graph to keep: the links nearest a point, up to a total length. */