diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ChangeListWorker.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ChangeListWorker.java index f0b839f7d86b..56c0bfac989b 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ChangeListWorker.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ChangeListWorker.java @@ -618,7 +618,7 @@ public class ChangeListWorker { @NotNull PlusMinusModify deltaListener) { HashMap oldChangeMappings = new HashMap<>(myChangeMappings); - boolean somethingChanged = notifyPathsChanged(myIdx, updatedWorker.myIdx, deltaListener); + notifyPathsChanged(myIdx, updatedWorker.myIdx, deltaListener); myIdx.copyFrom(updatedWorker.myIdx); myChangeMappings.clear(); @@ -654,9 +654,7 @@ public class ChangeListWorker { } } - if (somethingChanged) { - FileStatusManager.getInstance(myProject).fileStatusesChanged(); - } + FileStatusManager.getInstance(myProject).fileStatusesChanged(); if (myMainWorker) { myDelayedNotificator.allChangeListsMappingsChanged(); @@ -667,8 +665,8 @@ public class ChangeListWorker { } } - private static boolean notifyPathsChanged(@NotNull ChangeListsIndexes was, @NotNull ChangeListsIndexes became, - @NotNull PlusMinusModify deltaListener) { + private static void notifyPathsChanged(@NotNull ChangeListsIndexes was, @NotNull ChangeListsIndexes became, + @NotNull PlusMinusModify deltaListener) { final Set toRemove = new HashSet<>(); final Set toAdd = new HashSet<>(); final Set> toModify = new HashSet<>(); @@ -683,7 +681,6 @@ public class ChangeListWorker { for (BeforeAfter beforeAfter : toModify) { deltaListener.modify(beforeAfter.getBefore(), beforeAfter.getAfter()); } - return !toRemove.isEmpty() || !toAdd.isEmpty(); } void setChangeLists(@NotNull Collection lists) {