Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortherzok <marius.ungureanu@xamarin.com>2019-09-28 00:35:09 +0300
committertherzok <marius.ungureanu@xamarin.com>2019-10-01 12:59:32 +0300
commitd8bc7093b0a6fcfe60c4db20d9c78968067d8c47 (patch)
tree087afaf67a0c24e5287c690dc5e99f7517dc3ccc
parentcd14b7dfe5217fa8492244ef1e37cfe40d7f6d99 (diff)
Simplify this conditionfsw-fine-grained-kind
-rw-r--r--main/src/core/MonoDevelop.Core/MonoDevelop.Projects/FileWatcherService.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/FileWatcherService.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/FileWatcherService.cs
index a47d6569a9..313c9460f0 100644
--- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/FileWatcherService.cs
+++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/FileWatcherService.cs
@@ -550,11 +550,11 @@ namespace MonoDevelop.Projects
bool isDirectory = IsDirectoryWatcher (sender);
- bool removed = isDirectory
- ? !Directory.Exists (e.FullPath)
- : !File.Exists (e.FullPath);
+ bool exists = isDirectory
+ ? Directory.Exists (e.FullPath)
+ : File.Exists (e.FullPath);
- if (removed) {
+ if (!exists) {
using (readerWriterLock.Read ()) {
var sw = FileWatcherService.Timings.Get ();
sw.Restart ();