codacy: EmptyCatchBlock

This commit is contained in:
AndyScherzinger 2018-02-21 22:33:25 +01:00
parent 7055c4b29a
commit 7dc50e45ad
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B

View File

@ -89,6 +89,7 @@ class SSLSocketFactoryCompat(trustManager: X509TrustManager) : SSLSocketFactory(
cipherSuites = _cipherSuites.toTypedArray()
}
} catch (e: IOException) {
// Exception is to be ignored
} finally {
socket?.close() // doesn't implement Closeable on all supported Android versions
}