summaryrefslogtreecommitdiff
path: root/ssh
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-11-30 14:45:34 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-11-30 14:45:34 +0530
commit7475f2fb13f7f8b8e2bfbe48a58c2cca6b225392 (patch)
tree17e70d3313a8026a61d03b628482682155df2ea6 /ssh
parent14cc25af148e8506346644a1cf9a3dcc1b22b960 (diff)
fix: replace `Enum.values()` with `Enum.entries`
Diffstat (limited to 'ssh')
-rw-r--r--ssh/src/main/kotlin/app/passwordstore/ssh/SSHKeyType.kt2
1 files changed, 1 insertions, 1 deletions
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]
}
}