parent
2d71a79bbe
commit
26b8ec66ac
|
@ -267,7 +267,7 @@ pub fn serve(
|
||||||
let should_watch = match mode {
|
let should_watch = match mode {
|
||||||
WatchMode::Required => true,
|
WatchMode::Required => true,
|
||||||
WatchMode::Optional => watch_path.exists(),
|
WatchMode::Optional => watch_path.exists(),
|
||||||
WatchMode::Condition(b) => b,
|
WatchMode::Condition(b) => b && watch_path.exists(),
|
||||||
};
|
};
|
||||||
if should_watch {
|
if should_watch {
|
||||||
watcher
|
watcher
|
||||||
|
|
Loading…
Reference in a new issue