Merge pull request #7752 from peternewman/patch-6

Fix a lot of typos and initial codespell action run
This commit is contained in:
Quincy Morgan
2020-10-05 14:02:19 -04:00
committed by GitHub
11 changed files with 34 additions and 12 deletions
+3 -3
View File
@@ -170,11 +170,11 @@ export function validationAlmostJunction(context) {
return false;
}
let occurences = 0;
let occurrences = 0;
for (const index in way.nodes) {
if (way.nodes[index] === node.id) {
occurences += 1;
if (occurences > 1) {
occurrences += 1;
if (occurrences > 1) {
return false;
}
}
+3 -3
View File
@@ -46,11 +46,11 @@ export function validationImpossibleOneway() {
}
function nodeOccursMoreThanOnce(way, nodeID) {
var occurences = 0;
var occurrences = 0;
for (var index in way.nodes) {
if (way.nodes[index] === nodeID) {
occurences += 1;
if (occurences > 1) return true;
occurrences += 1;
if (occurrences > 1) return true;
}
}
return false;