Remove unnecesary fsWatcher check

This commit is contained in:
Alex Shpak 2017-02-05 01:12:01 +01:00
parent 9573ca8440
commit 1f752ffbdd
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ const StorageFile = StorageBase.extend({
}
if (!watcher.callbacks.length) {
this.logger.debug('Stop watch dir', names.dir);
watcher.fsWatcher.close && watcher.fsWatcher.close();
watcher.fsWatcher.close();
delete fileWatchers[names.dir];
}
}