This commit is contained in:
2020-09-07 19:00:16 +08:00
parent 0c0ceeebfd
commit 10ed3b1db8
-6
View File
@@ -99,15 +99,9 @@ trait Action
/**
* @param $port
* @return bool|array
* @throws ComponentException
*/
private function isUse($port)
{
/** @var Input $input */
$input = Snowflake::app()->get('input');
if (in_array($input->get('action'), ['start', 'restart'])) {
return true;
}
if (empty($port)) {
return false;
}