Skip to content

Commit

Permalink
Fix static tests and remove return before redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
nuzil authored and ihor-sviziev committed Jul 22, 2018
1 parent 1b504cd commit ac4a2fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/code/Magento/Newsletter/Controller/Manage/Save.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,8 @@ public function execute()
->unsubscribeCustomerById($customerId);
$this->messageManager->addSuccess(__('We removed the subscription.'));
}
}else{
} else {
$this->messageManager->addSuccess(__('We updated the subscription.'));
return;
}
} catch (\Exception $e) {
$this->messageManager->addError(__('Something went wrong while saving your subscription.'));
Expand Down

0 comments on commit ac4a2fa

Please sign in to comment.