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:
@@ -822,10 +822,10 @@ class KotlinMPPGradleModelBuilder : ModelBuilderService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
(allSourceSetToCompilations[sourceSet]?.all { it.isTestModule }
|
allSourceSetToCompilations[sourceSet]?.all { it.isTestModule }?.let { isTest ->
|
||||||
?: if (!isHMPPEnabled && sourceSet.name == KotlinSourceSet.COMMON_TEST_SOURCE_SET_NAME) true else null)?.let { isTest ->
|
|
||||||
sourceSet.isTestModule = isTest
|
sourceSet.isTestModule = isTest
|
||||||
}
|
}
|
||||||
|
|
||||||
(allSourceSetToCompilations[sourceSet])?.let { compilations ->
|
(allSourceSetToCompilations[sourceSet])?.let { compilations ->
|
||||||
val platforms = compilations.map { it.platform }
|
val platforms = compilations.map { it.platform }
|
||||||
sourceSet.actualPlatforms.addSimplePlatforms(platforms)
|
sourceSet.actualPlatforms.addSimplePlatforms(platforms)
|
||||||
|
|||||||
Reference in New Issue
Block a user