From 7971ec400772738bff4f1646ec5922627a67e419 Mon Sep 17 00:00:00 2001 From: Senrokai Date: Fri, 18 Sep 2026 12:56:51 +0200 Subject: [PATCH] Simplify: without a give-up the bisection can only have closed on the resolution Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_016jxMkwA2rbicdGxHosecYi --- src/app/shared/astro/jump-links.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/shared/astro/jump-links.ts b/src/app/shared/astro/jump-links.ts index 3f36c51..a6ea876 100644 --- a/src/app/shared/astro/jump-links.ts +++ b/src/app/shared/astro/jump-links.ts @@ -258,7 +258,8 @@ export function minimumRangeBetween(index: StarNeighbourhood, fromId: number, to 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. */