Remove useless condition

Note that in previous line we already check for !isHmppEnabled and for
sourceSet.name == KotlinSourceSet.COMMON_TEST_SOURCE_SET_NAME, and if it
holds, then we continue to the next loop iteration. So, this conditional
here is essentually equal to 'false'
This commit is contained in:
Dmitry Savvinov
2020-12-11 17:19:44 +03:00
parent ecd96e14c9
commit 824efe8498
@@ -822,10 +822,10 @@ class KotlinMPPGradleModelBuilder : ModelBuilderService {
}
}
(allSourceSetToCompilations[sourceSet]?.all { it.isTestModule }
?: if (!isHMPPEnabled && sourceSet.name == KotlinSourceSet.COMMON_TEST_SOURCE_SET_NAME) true else null)?.let { isTest ->
allSourceSetToCompilations[sourceSet]?.all { it.isTestModule }?.let { isTest ->
sourceSet.isTestModule = isTest
}
(allSourceSetToCompilations[sourceSet])?.let { compilations ->
val platforms = compilations.map { it.platform }
sourceSet.actualPlatforms.addSimplePlatforms(platforms)