Skip to content

Commit

Permalink
[TASK] Apply ExtbaseActionsWithRedirectMustReturnResponseInterfaceRector
Browse files Browse the repository at this point in the history
  • Loading branch information
simonschaufi committed Nov 25, 2024
1 parent 1e4c524 commit 6687099
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Classes/Controller/NewsBaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ protected function handleNoNewsFoundError(string $configuration): ?ResponseInter

switch ($options[0]) {
case 'redirectToListView':
$this->redirect('list');
break;
return $this->redirect('list');
case 'redirectToPage':
if (count($options) === 1 || count($options) > 3) {
$msg = sprintf(
Expand Down

0 comments on commit 6687099

Please sign in to comment.