aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/src/main/kotlin/Formats/StructuredFormatService.kt11
1 files changed, 1 insertions, 10 deletions
diff --git a/core/src/main/kotlin/Formats/StructuredFormatService.kt b/core/src/main/kotlin/Formats/StructuredFormatService.kt
index dabc0b2b..fffa9e3e 100644
--- a/core/src/main/kotlin/Formats/StructuredFormatService.kt
+++ b/core/src/main/kotlin/Formats/StructuredFormatService.kt
@@ -921,16 +921,7 @@ fun effectivePlatformsForMembers(nodes: Collection<DocumentationNode>): Set<Stri
}
fun mergeVersions(kotlinVersions: List<String>): String {
- val allKotlinVersions = kotlinVersions.distinct()
-
- val minVersion = allKotlinVersions.min()!!
- val resultVersion: String = when {
- allKotlinVersions.size == 1 -> allKotlinVersions.single()
- minVersion.endsWith("+") -> minVersion
- else -> "$minVersion+"
- }
-
- return resultVersion
+ return kotlinVersions.distinct().min()!!
}
fun effectiveSinceKotlinForNode(node: DocumentationNode, baseVersion: String = "1.0"): String {