Skip to content

Commit ac4a2fa

Browse files
nuzilihor-sviziev
authored andcommitted
Fix static tests and remove return before redirect
1 parent 1b504cd commit ac4a2fa

File tree

1 file changed

+1
-2
lines changed
  • app/code/Magento/Newsletter/Controller/Manage

1 file changed

+1
-2
lines changed

Diff for: app/code/Magento/Newsletter/Controller/Manage/Save.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,8 @@ public function execute()
9696
->unsubscribeCustomerById($customerId);
9797
$this->messageManager->addSuccess(__('We removed the subscription.'));
9898
}
99-
}else{
99+
} else {
100100
$this->messageManager->addSuccess(__('We updated the subscription.'));
101-
return;
102101
}
103102
} catch (\Exception $e) {
104103
$this->messageManager->addError(__('Something went wrong while saving your subscription.'));

0 commit comments

Comments
 (0)