Skip to content

Commit

Permalink
Merge pull request #21 from Shadow243/refactoring-redirect-filter-action
Browse files Browse the repository at this point in the history
Refactor if condition in parse function
  • Loading branch information
josaphatim authored Aug 3, 2024
2 parents d013d04 + 4c36022 commit 3590d0f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Filters/Actions/RedirectFilterAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])) {
Expand Down

0 comments on commit 3590d0f

Please sign in to comment.