From ace3fe828e1b6db055ae5592c5c8c57c3c1aaa8f Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Wed, 19 Aug 2020 16:53:35 +0200 Subject: publication.kt: Improve code readability --- buildSrc/src/main/kotlin/org/jetbrains/publication.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'buildSrc/src/main') diff --git a/buildSrc/src/main/kotlin/org/jetbrains/publication.kt b/buildSrc/src/main/kotlin/org/jetbrains/publication.kt index cd464c3c..b4259978 100644 --- a/buildSrc/src/main/kotlin/org/jetbrains/publication.kt +++ b/buildSrc/src/main/kotlin/org/jetbrains/publication.kt @@ -61,11 +61,11 @@ fun Project.configureSpacePublicationIfNecessary(vararg publications: String) { whenEvaluated { tasks.withType { - val isSpaceRepository = this.repository.name == SpaceDokkaDev.name - if (!isSpaceRepository) return@withType - this.isEnabled = this.isEnabled && publication.name in publications - if (!this.isEnabled) { - this.group = "disabled" + if (this.repository.name == SpaceDokkaDev.name) { + this.isEnabled = this.isEnabled && publication.name in publications + if (!this.isEnabled) { + this.group = "disabled" + } } } } -- cgit