mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Clearer conditional
This commit is contained in:
@@ -530,7 +530,7 @@ export function osmIntersection(graph, startVertexId, maxDistance) {
|
||||
isOnlyVia = (v[0].id === nextNode.id);
|
||||
} else { // via way(s)
|
||||
for (var i = 0; i < v.length; i++) {
|
||||
if (!v[i].type === 'way') continue;
|
||||
if (v[i].type !== 'way') continue;
|
||||
var viaWay = vgraph.entity(v[i].id);
|
||||
if (viaWay.first() === nextNode.id || viaWay.last() === nextNode.id) {
|
||||
isOnlyVia = true;
|
||||
|
||||
Reference in New Issue
Block a user