This commit is contained in:
as2252258@163.com
2021-04-09 02:47:17 +08:00
parent b61987d43a
commit 8c5fa09b16
+1 -3
View File
@@ -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);