correcting build issues

This commit is contained in:
Benoit Costamagna
2018-01-29 13:20:50 +01:00
parent 45b74d8730
commit 8e85fe847f
+4 -4
View File
@@ -9,10 +9,10 @@ export function validationManyDeletions() {
var nodes=0, ways=0, areas=0, relations=0;
changes.deleted.forEach(function(c) {
if (c.type == 'node') {nodes++}
else if (c.type == 'way' && c.geometry(graph) == 'line') {ways++}
else if (c.type == 'way' && c.geometry(graph) == 'area') {areas++}
else if (c.type == 'relation') {relations++}
if (c.type === 'node') {nodes++;}
else if (c.type === 'way' && c.geometry(graph) === 'line') {ways++;}
else if (c.type === 'way' && c.geometry(graph) === 'area') {areas++;}
else if (c.type === 'relation') {relations++;}
});
if (changes.deleted.length > threshold) {
warnings.push({