From d843dd66c10d6d5b6c555b89a994e2c2519c2f19 Mon Sep 17 00:00:00 2001 From: Szymon Świstun Date: Wed, 18 Dec 2019 11:23:14 +0100 Subject: drop removed --- .../kotlin/transformers/documentation/DefaultDocumentationNodeMerger.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src') diff --git a/core/src/main/kotlin/transformers/documentation/DefaultDocumentationNodeMerger.kt b/core/src/main/kotlin/transformers/documentation/DefaultDocumentationNodeMerger.kt index 626038f5..a2867504 100644 --- a/core/src/main/kotlin/transformers/documentation/DefaultDocumentationNodeMerger.kt +++ b/core/src/main/kotlin/transformers/documentation/DefaultDocumentationNodeMerger.kt @@ -8,7 +8,7 @@ import org.jetbrains.dokka.utilities.DokkaConsoleLogger internal object DefaultDocumentationNodeMerger : DocumentationNodeMerger { override fun invoke(modules: Collection, context: DokkaContext): Module { - if (!modules.drop(1).all { it.name == modules.first().name }) + if (!modules.all { it.name == modules.first().name }) DokkaConsoleLogger.error("All module names need to be the same") return Module( modules.first().name, -- cgit