Fix compilation warning (due to Kotlin 1.4)

This commit is contained in:
Benoit Marty 2020-10-06 15:09:41 +02:00
parent 1a0dba7422
commit e708b0f01b

View file

@ -105,6 +105,6 @@ private fun Versions.doesServerSeparatesAddAndBind(): Boolean {
private fun Versions.getMaxVersion(): HomeServerVersion {
return supportedVersions
?.mapNotNull { HomeServerVersion.parse(it) }
?.max()
?.maxOrNull()
?: HomeServerVersion.r0_0_0
}