ApsMode enum - refactor of fromString
This commit is contained in:
parent
e8a5dc2627
commit
97530865ef
|
@ -8,6 +8,6 @@ enum class ApsMode() {
|
|||
|
||||
companion object {
|
||||
|
||||
fun fromString(stringValue: String?) = values().firstOrNull { it.name == (stringValue?.uppercase() ?: UNDEFINED.name) } ?: UNDEFINED
|
||||
fun fromString(stringValue: String?) = values().firstOrNull { it.name == stringValue?.uppercase() } ?: UNDEFINED
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue