Fix comment

This commit is contained in:
Jon D
2016-08-25 07:07:10 +01:00
parent 1b09b0dd60
commit 1dfa5aa77d

View File

@@ -81,7 +81,7 @@ export function Reverse(wayId, options) {
function reverseDirectionTags(node) {
// Update the direction based tags as appropriate then return an updated node
return node.update({tags: _.transform(node.tags, function(acc, tagValue, tagKey) {
// See if this is a direction tag and reverse (or use existing value if not forward/backward)
// See if this is a direction tag and reverse (or use existing value if not recognised)
if (tagKey === 'direction') {
acc[tagKey] = {forward: 'backward', backward: 'forward', left: 'right', right: 'left'}[tagValue] || tagValue;
} else {