From 4c36022d5e5cf14d49cf64b69f9e4bb1561377e6 Mon Sep 17 00:00:00 2001 From: Steven Ngesera Date: Wed, 31 Jul 2024 14:38:10 +0300 Subject: [PATCH] Refactor if condition in parse function --- src/Filters/Actions/RedirectFilterAction.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Filters/Actions/RedirectFilterAction.php b/src/Filters/Actions/RedirectFilterAction.php index 21be6b8..5ef5158 100644 --- a/src/Filters/Actions/RedirectFilterAction.php +++ b/src/Filters/Actions/RedirectFilterAction.php @@ -29,10 +29,8 @@ public function parse() { $this->require[] = 'copy'; $script .= " :copy"; } - if (isset($this->params['notify']) || isset($this->params['notify'])) { - $this->require[] = 'redirect-dsn'; - } if (!empty($this->params['notify'])) { + $this->require[] = 'redirect-dsn'; $script .= " :notify \"{$this->params['notify']}\""; } if (!empty($this->params['ret'])) {