Merge pull request #3 from appsoluut/deepsource-transform-e4ee430f
style: format code with Ktlint
This commit is contained in:
commit
9243088b88
1 changed files with 3 additions and 2 deletions
|
|
@ -4,11 +4,12 @@ enum class Heading(val symbol: Char) {
|
|||
NORTH('N'),
|
||||
EAST('E'),
|
||||
SOUTH('S'),
|
||||
WEST('W');
|
||||
WEST('W'),
|
||||
;
|
||||
|
||||
override fun toString(): String = symbol.toString()
|
||||
|
||||
companion object {
|
||||
fun from(symbol: Char): Heading? = entries.firstOrNull { it.symbol == symbol }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue