mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ProjectFileIndexImpl: avoid unnecessary check.
Roots to iterate returned from ModuleFileIndexImpl are already guaranteed to be in project and not excluded\ignored. GitOrigin-RevId: b633de33eb7f761425243074221321e63219407d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
43e8643d8a
commit
d547189be6
+1
-2
@@ -65,8 +65,7 @@ public class ProjectFileIndexImpl extends FileIndexBase implements ProjectFileIn
|
||||
for (Iterator<VirtualFile> iterator = result.iterator(); iterator.hasNext(); ) {
|
||||
VirtualFile root = iterator.next();
|
||||
DirectoryInfo info = getInfoForFileOrDirectory(root);
|
||||
if (!info.isInProject(root) // is excluded or ignored
|
||||
|| !module.equals(info.getModule())) { // maybe 2 modules have the same content root?
|
||||
if (!module.equals(info.getModule())) { // maybe 2 modules have the same content root?
|
||||
iterator.remove();
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user