diff options
author | therzok <marius.ungureanu@xamarin.com> | 2019-09-28 00:35:09 +0300 |
---|---|---|
committer | therzok <marius.ungureanu@xamarin.com> | 2019-10-01 12:59:32 +0300 |
commit | d8bc7093b0a6fcfe60c4db20d9c78968067d8c47 (patch) | |
tree | 087afaf67a0c24e5287c690dc5e99f7517dc3ccc | |
parent | cd14b7dfe5217fa8492244ef1e37cfe40d7f6d99 (diff) |
Simplify this conditionfsw-fine-grained-kind
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Projects/FileWatcherService.cs | 8 |
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 (); |