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 e8d4f9a commit b0863beCopy full SHA for b0863be
lib/src/test/java/at/bitfire/cert4android/CustomCertManagerTest.kt
@@ -114,7 +114,7 @@ class CustomCertManagerTest {
114
SecureRandom()
115
)
116
}.socketFactory
117
- conn.inputStream.read()
+ conn.inputStream.use { it.read() }
118
val certs = mutableListOf<X509Certificate>()
119
conn.serverCertificates.forEach { certs += it as X509Certificate }
120
return certs
0 commit comments