From 363b2cd981a42d1b0f8c07dc95db7a1ca69db7c0 Mon Sep 17 00:00:00 2001 From: nik Date: Tue, 22 Jul 2014 13:32:00 +0400 Subject: [PATCH] simplification --- .../src/com/intellij/openapi/vcs/impl/VcsRootIterator.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/impl/VcsRootIterator.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/impl/VcsRootIterator.java index 8caa6f2bc981..038314dac681 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/impl/VcsRootIterator.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/impl/VcsRootIterator.java @@ -57,9 +57,7 @@ public class VcsRootIterator { if ((rootFilter != null) && (! rootFilter.accept(file))) { return false; } - final Boolean excluded = isExcluded(myExcludedFileIndex, file); - if (excluded) return false; - return true; + return !isExcluded(myExcludedFileIndex, file); } private static boolean isExcluded(final FileIndexFacade indexFacade, final VirtualFile file) {