aboutsummaryrefslogtreecommitdiff
path: root/ssh
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-07-22 15:47:41 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-07-22 15:47:41 +0530
commitbed8ec76e33c165aa23d48c5f88df1409a9ce2bb (patch)
tree3c5ab943fc248a2014cd69d993969918ae051641 /ssh
parenteb55a32e8d3125fe98b144b3140eebc4c45fae35 (diff)
fix(ssh): remove usage of `kotlin.runCatching`
Diffstat (limited to 'ssh')
-rw-r--r--ssh/src/main/kotlin/app/passwordstore/ssh/provider/KeystoreNativeKeyProvider.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/ssh/src/main/kotlin/app/passwordstore/ssh/provider/KeystoreNativeKeyProvider.kt b/ssh/src/main/kotlin/app/passwordstore/ssh/provider/KeystoreNativeKeyProvider.kt
index 68505b8b..bc556e71 100644
--- a/ssh/src/main/kotlin/app/passwordstore/ssh/provider/KeystoreNativeKeyProvider.kt
+++ b/ssh/src/main/kotlin/app/passwordstore/ssh/provider/KeystoreNativeKeyProvider.kt
@@ -3,6 +3,8 @@ package app.passwordstore.ssh.provider
import app.passwordstore.ssh.utils.Constants.KEYSTORE_ALIAS
import app.passwordstore.ssh.utils.sshPrivateKey
import app.passwordstore.ssh.utils.sshPublicKey
+import com.github.michaelbull.result.getOrElse
+import com.github.michaelbull.result.runCatching
import java.io.IOException
import java.security.KeyStore
import java.security.PrivateKey