Minor. Avoid wrapping GlobalSearchScope.EMPTY_SCOPE
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ abstract class DeclarationProviderFactoryService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun filteringScope(syntheticFiles: Collection<KtFile>, baseScope: GlobalSearchScope): GlobalSearchScope {
|
private fun filteringScope(syntheticFiles: Collection<KtFile>, baseScope: GlobalSearchScope): GlobalSearchScope {
|
||||||
if (syntheticFiles.isEmpty()) {
|
if (syntheticFiles.isEmpty() || baseScope == GlobalSearchScope.EMPTY_SCOPE) {
|
||||||
return baseScope
|
return baseScope
|
||||||
}
|
}
|
||||||
return SyntheticFilesFilteringScope(syntheticFiles, baseScope)
|
return SyntheticFilesFilteringScope(syntheticFiles, baseScope)
|
||||||
|
|||||||
Reference in New Issue
Block a user