Skip to content

Commit

Permalink
Code Style Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Roettig authored Jul 12, 2018
1 parent b81bf67 commit b0848c4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions app/code/Magento/Review/Controller/Product/ListAjax.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,12 @@ class ListAjax extends ProductController
*/
public function execute()
{
if (!$this->initProduct()) {
if (!$this->initProduct()) {
/** @var \Magento\Framework\Controller\Result\Forward $resultForward */
$resultForward = $this->resultFactory->create(ResultFactory::TYPE_FORWARD);
$resultForward->forward('noroute');
return $resultForward;
} else {
/** @var \Magento\Framework\View\Result\Layout $resultLayout */
$resultLayout = $this->resultFactory->create(ResultFactory::TYPE_LAYOUT);
return $resultForward->forward('noroute');
}

return $resultLayout;
return $this->resultFactory->create(ResultFactory::TYPE_LAYOUT);
}
}

0 comments on commit b0848c4

Please sign in to comment.