From a3364a54e497663ffda07c303223f2032e6b754d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 29 Mar 2021 12:14:37 +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/Shutdown.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/HttpServer/Shutdown.php b/HttpServer/Shutdown.php index 93f9e9f5..dc123593 100644 --- a/HttpServer/Shutdown.php +++ b/HttpServer/Shutdown.php @@ -90,7 +90,6 @@ class Shutdown extends Component /** * @param $content * @return bool - * @throws ConfigException */ public function pidIsExists($content): bool { @@ -101,10 +100,7 @@ class Shutdown extends Component $output = array_filter($output, function ($value) { return intval($value); }); - if (in_array(intval($content), $output)) { - return false; - } - return true; + return in_array(intval($content), $output); }