FIR CLI: remove redundant cast and run
This commit is contained in:
committed by
Ilya Kirillov
parent
d2663cfb94
commit
2eab61d75f
@@ -461,11 +461,9 @@ private class ProjectEnvironmentWithCoreEnvironmentEmulation(
|
||||
override fun getPackagePartProvider(fileSearchScope: AbstractProjectFileSearchScope): PackagePartProvider {
|
||||
return super.getPackagePartProvider(fileSearchScope).also {
|
||||
(it as? JvmPackagePartProvider)?.run {
|
||||
(it as? JvmPackagePartProvider)?.run {
|
||||
addRoots(initialRoots, configuration.getNotNull(CLIConfigurationKeys.MESSAGE_COLLECTOR_KEY))
|
||||
packagePartProviders += this
|
||||
(ModuleAnnotationsResolver.getInstance(project) as CliModuleAnnotationsResolver).addPackagePartProvider(this)
|
||||
}
|
||||
addRoots(initialRoots, configuration.getNotNull(CLIConfigurationKeys.MESSAGE_COLLECTOR_KEY))
|
||||
packagePartProviders += this
|
||||
(ModuleAnnotationsResolver.getInstance(project) as CliModuleAnnotationsResolver).addPackagePartProvider(this)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user