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:
Sergey Patrikeev
2020-01-30 14:07:49 +00:00
committed by intellij-monorepo-bot
parent 43e8643d8a
commit d547189be6
@@ -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;
}