From 10ed3b1db80ebac4dad8a9170454774667e48aed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 7 Sep 2020 19:00:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Action.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/HttpServer/Action.php b/HttpServer/Action.php index b10e793c..e55abe6e 100644 --- a/HttpServer/Action.php +++ b/HttpServer/Action.php @@ -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; }