style: format code with Ktlint
This commit fixes the style issues introduced in 61e293e according to the output
from Ktlint.
Details: None
This commit is contained in:
parent
61e293ee18
commit
6fe6fdee8c
1 changed files with 3 additions and 2 deletions
|
|
@ -4,11 +4,12 @@ enum class Heading(val symbol: Char) {
|
||||||
NORTH('N'),
|
NORTH('N'),
|
||||||
EAST('E'),
|
EAST('E'),
|
||||||
SOUTH('S'),
|
SOUTH('S'),
|
||||||
WEST('W');
|
WEST('W'),
|
||||||
|
;
|
||||||
|
|
||||||
override fun toString(): String = symbol.toString()
|
override fun toString(): String = symbol.toString()
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
fun from(symbol: Char): Heading? = entries.firstOrNull { it.symbol == symbol }
|
fun from(symbol: Char): Heading? = entries.firstOrNull { it.symbol == symbol }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue