Skip to content

Commit 3590d0f

Browse files
authored
Merge pull request #21 from Shadow243/refactoring-redirect-filter-action
Refactor if condition in parse function
2 parents d013d04 + 4c36022 commit 3590d0f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Filters/Actions/RedirectFilterAction.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ public function parse() {
2929
$this->require[] = 'copy';
3030
$script .= " :copy";
3131
}
32-
if (isset($this->params['notify']) || isset($this->params['notify'])) {
33-
$this->require[] = 'redirect-dsn';
34-
}
3532
if (!empty($this->params['notify'])) {
33+
$this->require[] = 'redirect-dsn';
3634
$script .= " :notify \"{$this->params['notify']}\"";
3735
}
3836
if (!empty($this->params['ret'])) {

0 commit comments

Comments
 (0)