modify
This commit is contained in:
@@ -13,8 +13,6 @@ class Pipeline
|
|||||||
|
|
||||||
private bool $condition;
|
private bool $condition;
|
||||||
|
|
||||||
private \Throwable $throwable;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param bool $condition
|
* @param bool $condition
|
||||||
@@ -58,7 +56,7 @@ class Pipeline
|
|||||||
public function exec(...$argv)
|
public function exec(...$argv)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
if ($this->condition === false) {
|
if ($this->condition !== true) {
|
||||||
call_user_func($this->else, ...$argv);
|
call_user_func($this->else, ...$argv);
|
||||||
} else {
|
} else {
|
||||||
call_user_func($this->if, ...$argv);
|
call_user_func($this->if, ...$argv);
|
||||||
|
|||||||
Reference in New Issue
Block a user