Fixed clippy warning: unneeded return statement (#646)

This commit is contained in:
Raminder Singh
2019-09-07 06:44:37 +05:30
committed by Paul Masurel
parent 4b9c1dce69
commit 5e579fd6b7

View File

@@ -265,7 +265,7 @@ impl MmapDirectoryInner {
}
}
if let Some(watch_wrapper) = self.watcher.write().unwrap().as_mut() {
return Ok(watch_wrapper.watch(watch_callback));
Ok(watch_wrapper.watch(watch_callback))
} else {
unreachable!("At this point, watch wrapper is supposed to be initialized");
}