Merge pull request #378 (https://github.com/JetBrains/intellij-community/pull/378)
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>
Wed, 6 Apr 2016 16:48:08 +0000 (18:48 +0200)
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>
Wed, 6 Apr 2016 16:48:08 +0000 (18:48 +0200)
platform/platform-impl/src/com/intellij/openapi/vfs/impl/local/FileWatcher.java

index 4e9be517b0116543b2eae13ba092e4f6f34a093b..85a570c1547f210de59b85591f0761dfc87e0f2a 100644 (file)
@@ -184,9 +184,7 @@ public class FileWatcher {
 
     @Override
     public void notifyManualWatchRoots(@NotNull Collection<String> roots) {
-      if (!roots.isEmpty()) {
-        myManualWatchRoots.add(ContainerUtil.newHashSet(roots));
-      }
+      myManualWatchRoots.add(ContainerUtil.newHashSet(roots));
       notifyOnAnyEvent();
     }