From c456ca9a582aff465dc3e5586637663ecb17bdee Mon Sep 17 00:00:00 2001 From: KaiserBh Date: Fri, 29 Dec 2023 02:07:10 +1100 Subject: [PATCH] refactor: Ktlint and replace enum.values with Enum.entries. Signed-off-by: KaiserBh --- app/src/main/java/eu/kanade/tachiyomi/data/sync/SyncManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/sync/SyncManager.kt b/app/src/main/java/eu/kanade/tachiyomi/data/sync/SyncManager.kt index 5e3ba5054..ba2dc8b2c 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/sync/SyncManager.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/sync/SyncManager.kt @@ -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 } }