From 7475f2fb13f7f8b8e2bfbe48a58c2cca6b225392 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 30 Nov 2023 14:45:34 +0530 Subject: fix: replace `Enum.values()` with `Enum.entries` --- ssh/src/main/kotlin/app/passwordstore/ssh/SSHKeyType.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ssh/src') diff --git a/ssh/src/main/kotlin/app/passwordstore/ssh/SSHKeyType.kt b/ssh/src/main/kotlin/app/passwordstore/ssh/SSHKeyType.kt index 4a716ac8..b9318297 100644 --- a/ssh/src/main/kotlin/app/passwordstore/ssh/SSHKeyType.kt +++ b/ssh/src/main/kotlin/app/passwordstore/ssh/SSHKeyType.kt @@ -10,6 +10,6 @@ public enum class SSHKeyType(internal val value: String) { public companion object { - public fun fromValue(type: String?): SSHKeyType? = values().associateBy { it.value }[type] + public fun fromValue(type: String?): SSHKeyType? = entries.associateBy { it.value }[type] } } -- cgit v1.2.3