From 7c479f912184447e18893dcce59f25dfdd04b6ab Mon Sep 17 00:00:00 2001 From: zach Date: Fri, 6 Mar 2026 15:03:12 -0700 Subject: [PATCH] Formatted --- lib/screens/map_screen.dart | 7 +++---- lib/screens/path_trace_map.dart | 5 +---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/screens/map_screen.dart b/lib/screens/map_screen.dart index c4808f1..79ce54a 100644 --- a/lib/screens/map_screen.dart +++ b/lib/screens/map_screen.dart @@ -555,7 +555,8 @@ class _MapScreenState extends State { for (final c in withLocation) { if (c.type == advTypeRepeater) { if (repeaterByHash.containsKey(c.publicKey[0])) { - repeaterByHash[c.publicKey[0]] = null; // collision: can't disambiguate + repeaterByHash[c.publicKey[0]] = + null; // collision: can't disambiguate } else { repeaterByHash[c.publicKey[0]] = c; } @@ -696,9 +697,7 @@ class _MapScreenState extends State { const distance = Distance(); final maxDistM = maxRangeKm * 2000; return anchors - .where( - (a) => anchors.any((b) => b != a && distance(a, b) <= maxDistM), - ) + .where((a) => anchors.any((b) => b != a && distance(a, b) <= maxDistM)) .toList(); } diff --git a/lib/screens/path_trace_map.dart b/lib/screens/path_trace_map.dart index 465d7db..df5b19a 100644 --- a/lib/screens/path_trace_map.dart +++ b/lib/screens/path_trace_map.dart @@ -257,10 +257,7 @@ class _PathTraceMapScreenState extends State { if (contact != null && contact.hasLocation) continue; final peers = connector.contacts .where( - (c) => - c.hasLocation && - c.path.isNotEmpty && - c.path.last == hop, + (c) => c.hasLocation && c.path.isNotEmpty && c.path.last == hop, ) .toList(); if (peers.isNotEmpty) {