Skip to content

Commit aa0a5d4

Browse files
authored
Update BuildingShapeUtils.js
1 parent d8a7829 commit aa0a5d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/extras/BuildingShapeUtils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ class BuildingShapeUtils extends ShapeUtils {
8484
const validWays = [];
8585

8686
for (const way of ways) {
87-
if (BuildingShapeUtils.isSelfIntersecting(w)) {
87+
if (BuildingShapeUtils.isSelfIntersecting(way)) {
8888
const id = w.getAttribute();
8989
const msg = 'Way ' + id + ' is self-intersecting';
90-
window.printError(msg)
90+
window.printError(msg);
9191
} else {
9292
validWays.push(way);
9393
}
@@ -154,7 +154,7 @@ class BuildingShapeUtils extends ShapeUtils {
154154
return [];
155155
}
156156

157-
valisWays.forEach(w => {
157+
validWays.forEach(w => {
158158
const wayID = w.getAttribute('id');
159159
if (usedWays.has(wayID)){
160160
return;

0 commit comments

Comments
 (0)