Enable no-undef-init eslint rule

This commit is contained in:
Quincy Morgan
2020-10-23 11:33:47 -04:00
parent 6549bcc197
commit 3f9ac9105b
3 changed files with 3 additions and 2 deletions
+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 = undefined;
var restrict;
for (j = 0; j < currRestrictions.length; j++) {
var restriction = currRestrictions[j];
var f = restriction.memberByRole('from');