From 8c5fa09b16673a11d6af4d910c7a6e00939ae170 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Fri, 9 Apr 2021 02:47:17 +0800 Subject: [PATCH] modify --- HttpServer/Events/Pipeline.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/HttpServer/Events/Pipeline.php b/HttpServer/Events/Pipeline.php index e78696a0..df5bc1f1 100644 --- a/HttpServer/Events/Pipeline.php +++ b/HttpServer/Events/Pipeline.php @@ -13,8 +13,6 @@ class Pipeline private bool $condition; - private \Throwable $throwable; - /** * @param bool $condition @@ -58,7 +56,7 @@ class Pipeline public function exec(...$argv) { try { - if ($this->condition === false) { + if ($this->condition !== true) { call_user_func($this->else, ...$argv); } else { call_user_func($this->if, ...$argv);