Skip to content

Commit 188f6af

Browse files
committed
改进file_monitor_path配置判断
1 parent 28ef158 commit 188f6af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/command/Worker.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function execute(Input $input, Output $output)
112112
// 设置文件监控
113113
if (DIRECTORY_SEPARATOR !== '\\' && (App::isDebug() || !empty($this->config['file_monitor']))) {
114114
$interval = $this->config['file_monitor_interval'] ?? 2;
115-
$paths = $this->config['file_monitor_path'] ?? [App::getAppPath(), App::getConfigPath()];
115+
$paths = !empty($this->config['file_monitor_path']) ? $this->config['file_monitor_path'] : [App::getAppPath(), App::getConfigPath()];
116116
$worker->setMonitor($interval, $paths);
117117
unset($this->config['file_monitor'], $this->config['file_monitor_interval'], $this->config['file_monitor_path']);
118118
}

0 commit comments

Comments
 (0)