Fix tests

This commit is contained in:
Quincy Morgan
2020-10-23 15:49:30 -04:00
parent f2ef27f78c
commit 15c8e060f8
+1 -1
View File
@@ -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');