From e90a2594e045000c9bf48484f9afad8a68230c78 Mon Sep 17 00:00:00 2001 From: Marc Emmanuel Date: Fri, 30 Jan 2026 14:30:56 +0100 Subject: [PATCH] refactor: format findPath call for improved readability --- src/modules/routes-generator.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/routes-generator.ts b/src/modules/routes-generator.ts index 6539238b..1ca7cd78 100644 --- a/src/modules/routes-generator.ts +++ b/src/modules/routes-generator.ts @@ -374,7 +374,12 @@ class RoutesModule { exit: number; }) { const getCost = this.createCostEvaluator({ isWater, connections }); - const pathCells = findPath(start, (current) => current === exit, getCost, pack); + const pathCells = findPath( + start, + (current) => current === exit, + getCost, + pack, + ); if (!pathCells) return []; const segments = this.getRouteSegments(pathCells, connections); return segments;