Skip to content

Commit 386c189

Browse files
committed
Minor simplification
1 parent fa3f892 commit 386c189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/at/bitfire/davdroid/network/ConnectionSecurityManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class ConnectionSecurityManager @Inject constructor(
8686
// create SSLContext that provides the SSLSocketFactory
8787
val sslContext = SSLContext.getInstance("TLS").apply {
8888
init(
89-
/* km = */ if (clientKeyManager != null) arrayOf(clientKeyManager) else null,
89+
/* km = */ clientKeyManager?.let { arrayOf(it) },
9090
/* tm = */ arrayOf(trustManager),
9191
/* random = */ null /* default RNG */
9292
)

0 commit comments

Comments
 (0)