From 15c8e060f8444231076573db08383ca342bff0ce Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Fri, 23 Oct 2020 15:49:30 -0400 Subject: [PATCH] Fix tests --- modules/osm/intersection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/osm/intersection.js b/modules/osm/intersection.js index ffb3b6c49..e1dfbb707 100644 --- a/modules/osm/intersection.js +++ b/modules/osm/intersection.js @@ -380,7 +380,7 @@ export function osmIntersection(graph, startVertexId, maxDistance) { if (currPath.indexOf(way.id) !== -1 && currPath.length >= 3) continue; // Check all "current" restrictions (where we've already walked the `FROM`) - var restrict; + var restrict = null; for (j = 0; j < currRestrictions.length; j++) { var restriction = currRestrictions[j]; var f = restriction.memberByRole('from');