Use Enum.entries instead of Enum.values()
This commit is contained in:
parent
04e76170e9
commit
b787b0f9b8
|
@ -19,7 +19,7 @@ enum class AccountType {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun Int.toAccountType(): AccountType {
|
private fun Int.toAccountType(): AccountType {
|
||||||
return AccountType.values().getOrNull(this) ?: AccountType.SSO
|
return AccountType.entries.getOrNull(this) ?: AccountType.SSO
|
||||||
}
|
}
|
||||||
|
|
||||||
object Account {
|
object Account {
|
||||||
|
|
Loading…
Reference in New Issue