Skip to content

Commit e0c3705

Browse files
authored
Remove unnecessary comments in File Monitoring (#5645)
1 parent 31c4fbb commit e0c3705

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/WebJobs.Script.WebHost/FileMonitoringService.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ private void InitializeNonBlockingFileWatchers()
135135

136136
lock (_stopWatchersLock)
137137
{
138-
// We need this duplication to avoid race if watchers were stopped just when we acquired the lock
139138
if (!_watchersStopped)
140139
{
141140
_debugModeFileWatcher = new AutoRecoveringFileSystemWatcher(_hostLogPath, ScriptConstants.DebugSentinelFileName,
@@ -160,7 +159,6 @@ private void StopFileWatchers()
160159

161160
lock (_stopWatchersLock)
162161
{
163-
// We need this duplication to avoid race if watchers were stopped just when we acquired the lock
164162
if (_watchersStopped)
165163
{
166164
return;

0 commit comments

Comments
 (0)