From bed8ec76e33c165aa23d48c5f88df1409a9ce2bb Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 22 Jul 2023 15:47:41 +0530 Subject: [PATCH] fix(ssh): remove usage of `kotlin.runCatching` --- .../app/passwordstore/ssh/provider/KeystoreNativeKeyProvider.kt | 2 ++ 1 file changed, 2 insertions(+) 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