Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
chore/offband-rebrand
ericszimmermann 4 months ago committed by GitHub
parent 7b3c099736
commit 87d11c2e6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -848,7 +848,11 @@ List<_PathHop> _buildPathHops(
var bestDistance = double.infinity;
for (var j = 0; j < candidates.length; j++) {
final candidate = candidates[j];
if (!candidate.hasLocation) continue;
if (!candidate.hasLocation ||
candidate.latitude == null ||
candidate.longitude == null) {
continue;
}
final currentDistance = distance(
searchPoint,
LatLng(candidate.latitude!, candidate.longitude!),

Loading…
Cancel
Save

Powered by TurnKey Linux.