diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2023-07-22 15:47:41 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2023-07-22 15:47:41 +0530 |
commit | bed8ec76e33c165aa23d48c5f88df1409a9ce2bb (patch) | |
tree | 3c5ab943fc248a2014cd69d993969918ae051641 | |
parent | eb55a32e8d3125fe98b144b3140eebc4c45fae35 (diff) |
fix(ssh): remove usage of `kotlin.runCatching`
-rw-r--r-- | ssh/src/main/kotlin/app/passwordstore/ssh/provider/KeystoreNativeKeyProvider.kt | 2 |
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 |