Skip to content

Commit

Permalink
see #20019: Warn about direction=forward/backward on invalid nodes.
Browse files Browse the repository at this point in the history
- fix parenthesis

git-svn-id: https://josm.openstreetmap.de/svn/trunk@17352 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
GerdP authored and GerdP committed Nov 24, 2020
1 parent 83348a8 commit 1863fe0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public void visit(Node n) {
if (!n.isUsable() || !n.isTagged())
return;
for (Entry<String, String> tag : n.getKeys().entrySet()) {
if (("forward".equals(tag.getValue()) || "backward".equals(tag.getValue())
&& ("direction".equals(tag.getKey()) || tag.getKey().endsWith(":direction")))) {
if (("forward".equals(tag.getValue()) || "backward".equals(tag.getValue()))
&& ("direction".equals(tag.getKey()) || tag.getKey().endsWith(":direction"))) {
checkParents(n, tag.toString());
}
}
Expand Down

0 comments on commit 1863fe0

Please sign in to comment.