We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa3f892 commit 386c189Copy full SHA for 386c189
app/src/main/kotlin/at/bitfire/davdroid/network/ConnectionSecurityManager.kt
@@ -86,7 +86,7 @@ class ConnectionSecurityManager @Inject constructor(
86
// create SSLContext that provides the SSLSocketFactory
87
val sslContext = SSLContext.getInstance("TLS").apply {
88
init(
89
- /* km = */ if (clientKeyManager != null) arrayOf(clientKeyManager) else null,
+ /* km = */ clientKeyManager?.let { arrayOf(it) },
90
/* tm = */ arrayOf(trustManager),
91
/* random = */ null /* default RNG */
92
)
0 commit comments