Skip to content

Commit

Permalink
delete handrail-tagging if user answered that there is no handrail (p…
Browse files Browse the repository at this point in the history
…art of #2162)
  • Loading branch information
westnordost committed Oct 15, 2020
1 parent 2b24918 commit a92cac3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,10 @@ class AddHandrail(overpassApi: OverpassMapDataAndGeometryApi, r: ResurveyInterva

override fun applyAnswerTo(answer: Boolean, changes: StringMapChangesBuilder) {
changes.updateWithCheckDate("handrail", answer.toYesNo())
if (!answer) {
changes.deleteIfExists("handrail:left")
changes.deleteIfExists("handrail:right")
changes.deleteIfExists("handrail:center")
}
}
}

0 comments on commit a92cac3

Please sign in to comment.