Add workaround for KT-54318

This commit is contained in:
Dmitriy Novozhilov
2022-10-05 16:47:49 +03:00
committed by teamcity
parent 5c1eaa6fa4
commit e290fa5f7b
@@ -41,7 +41,8 @@ fun Project.probeRemoteFileLength(url: String, probingTimeoutMs: Int = 0): Long?
throw e
else {
logger.kotlinDebug(::probeRemoteFileLength.name + "($url, $probingTimeoutMs): Failed to obtain content-length during the probing timeout.")
null
@Suppress("UNCHECKED_CAST")
null as Long?
}
} finally {
connection.disconnect()