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 }
|
||||
?: 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)
|
||||
|
||||
Reference in New Issue
Block a user