diff options
| author | Harsh Shandilya <me@msfjarvis.dev> | 2022-02-26 01:58:20 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-26 01:58:20 +0530 |
| commit | 778834d5e4d2095a5a95007dd303ebd8e6c08493 (patch) | |
| tree | 56aa39f7cb300df0fe3297b0c1cf969c17f477af /app/src/main/java/dev/msfjarvis/aps/util/git/sshj | |
| parent | 0af4e2920cd22d2b680faa26aac77d4baf84f36c (diff) | |
| download | HardenedPass-778834d5e4d2095a5a95007dd303ebd8e6c08493.tar.gz HardenedPass-778834d5e4d2095a5a95007dd303ebd8e6c08493.zip | |
Upgrade ktfmt to 0.33 (#1753)
* build: upgrade ktfmt to 0.33
* all: reformat with ktfmt 0.33
Diffstat (limited to 'app/src/main/java/dev/msfjarvis/aps/util/git/sshj')
| -rw-r--r-- | app/src/main/java/dev/msfjarvis/aps/util/git/sshj/OpenKeychainKeyProvider.kt | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/app/src/main/java/dev/msfjarvis/aps/util/git/sshj/OpenKeychainKeyProvider.kt b/app/src/main/java/dev/msfjarvis/aps/util/git/sshj/OpenKeychainKeyProvider.kt index 3a40b8a2..90d0ecc1 100644 --- a/app/src/main/java/dev/msfjarvis/aps/util/git/sshj/OpenKeychainKeyProvider.kt +++ b/app/src/main/java/dev/msfjarvis/aps/util/git/sshj/OpenKeychainKeyProvider.kt @@ -76,21 +76,20 @@ class OpenKeychainKeyProvider private constructor(val activity: ContinuationCont } private suspend fun prepare() { - sshServiceApi = - suspendCoroutine { cont -> - sshServiceConnection.connect( - object : SshAuthenticationConnection.OnBound { - override fun onBound(sshAgent: ISshAuthenticationService) { - logcat { "Bound to SshAuthenticationApi: $OPENPGP_PROVIDER" } - cont.resume(SshAuthenticationApi(context, sshAgent)) - } + sshServiceApi = suspendCoroutine { cont -> + sshServiceConnection.connect( + object : SshAuthenticationConnection.OnBound { + override fun onBound(sshAgent: ISshAuthenticationService) { + logcat { "Bound to SshAuthenticationApi: $OPENPGP_PROVIDER" } + cont.resume(SshAuthenticationApi(context, sshAgent)) + } - override fun onError() { - throw UserAuthException(DisconnectReason.UNKNOWN, "OpenKeychain service unavailable") - } + override fun onError() { + throw UserAuthException(DisconnectReason.UNKNOWN, "OpenKeychain service unavailable") } - ) - } + } + ) + } if (keyId == null) { selectKey() |
