Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
FloEdelmann committed Jun 3, 2024
1 parent 132ee5c commit 918050a
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ private fun CyclewayAndDirection.applyTo(tags: Tags, isRight: Boolean, isLeftHan
// https://wiki.openstreetmap.org/wiki/File:Z240GemeinsamerGehundRadweg.jpeg
tags[cyclewayKey] = "track"
tags["$cyclewayKey:segregated"] = "no"

}
PICTOGRAMS -> {
tags[cyclewayKey] = "shared_lane"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private fun SeparateCycleway?.getColor() = when (this) {
SeparateCycleway.NON_DESIGNATED_ON_FOOTWAY,
SeparateCycleway.PATH ->
Color.BLACK

SeparateCycleway.NON_SEGREGATED ->
Color.CYAN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class AddPowerPolesMaterial : OsmFilterQuestType<PowerPolesMaterialAnswer>() {
override fun applyAnswerTo(answer: PowerPolesMaterialAnswer, tags: Tags, geometry: ElementGeometry, timestampEdited: Long) {
if (answer is PowerPolesMaterial) {
tags["material"] = answer.osmValue
} else if(answer is PowerLineAnchoredToBuilding) {
} else if (answer is PowerLineAnchoredToBuilding) {
tags["power"] = "terminal"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ class AddPowerPolesMaterialForm : AImageListQuestForm<PowerPolesMaterial, PowerP
override fun onClickOk(selectedItems: List<PowerPolesMaterial>) {
applyAnswer(selectedItems.single())
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,6 @@ class SeparateCyclewayCreatorKtTest {
))
)
}

}

private fun SeparateCycleway.appliedTo(tags: Map<String, String>): Set<StringMapEntryChange> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,4 @@ class SeparateCyclewayParserKtTest {
}
}


private fun parse(vararg pairs: Pair<String, String>) = parseSeparateCycleway(mapOf(*pairs))

0 comments on commit 918050a

Please sign in to comment.