summaryrefslogtreecommitdiff
path: root/cli/util/file_watcher.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/util/file_watcher.rs')
-rw-r--r--cli/util/file_watcher.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/util/file_watcher.rs b/cli/util/file_watcher.rs
index b2628760b..176ca43f0 100644
--- a/cli/util/file_watcher.rs
+++ b/cli/util/file_watcher.rs
@@ -163,6 +163,9 @@ pub struct WatcherCommunicator {
impl WatcherCommunicator {
pub fn watch_paths(&self, paths: Vec<PathBuf>) -> Result<(), AnyError> {
+ if paths.is_empty() {
+ return Ok(());
+ }
self.paths_to_watch_tx.send(paths).map_err(AnyError::from)
}