mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-15 15:02:49 +01:00
refactor: Ktlint and replace enum.values with Enum.entries.
Signed-off-by: KaiserBh <kaiserbh@proton.me>
This commit is contained in:
parent
37033cbfc3
commit
c456ca9a58
@ -60,7 +60,7 @@ class SyncManager(
|
||||
;
|
||||
|
||||
companion object {
|
||||
fun fromInt(value: Int) = values().firstOrNull { it.value == value } ?: NONE
|
||||
fun fromInt(value: Int) = entries.firstOrNull { it.value == value } ?: NONE
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user