Skip to content

Commit

Permalink
correcting build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit Costamagna authored and Benoit Costamagna committed Jan 29, 2018
1 parent 45b74d8 commit 8e85fe8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/validations/many_deletions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 8e85fe8

Please sign in to comment.