From 79251d89cf4ad306f689f13ce64b64051c2fd8bc Mon Sep 17 00:00:00 2001 From: Sergey Patrikeev Date: Mon, 27 Jan 2020 14:32:00 +0300 Subject: [PATCH] ProjectFileIndexImpl: simplify condition by reusing the method. GitOrigin-RevId: 6291ee7e802641ff3dcc4eabf2453f5390e66d74 --- .../com/intellij/openapi/roots/impl/ProjectFileIndexImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ProjectFileIndexImpl.java b/platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ProjectFileIndexImpl.java index 827210ade2e1..9928d97e1fb4 100644 --- a/platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ProjectFileIndexImpl.java +++ b/platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ProjectFileIndexImpl.java @@ -72,8 +72,7 @@ public class ProjectFileIndexImpl extends FileIndexBase implements ProjectFileIn VirtualFile parent = root.getParent(); if (parent != null) { - DirectoryInfo parentInfo = getInfoForFileOrDirectory(parent); - if (isFileInContent(parent, parentInfo)) { + if (isInContent(parent)) { iterator.remove(); } }