Skip to content

Commit 53ba0ac

Browse files
Lars Roettigmage2pratik
authored andcommitted
Code Style Fix
1 parent c729a3b commit 53ba0ac

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

app/code/Magento/Review/Controller/Product/ListAjax.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,12 @@ class ListAjax extends ProductController
1818
*/
1919
public function execute()
2020
{
21-
if (!$this->initProduct()) {
21+
if (!$this->initProduct()) {
2222
/** @var \Magento\Framework\Controller\Result\Forward $resultForward */
2323
$resultForward = $this->resultFactory->create(ResultFactory::TYPE_FORWARD);
24-
$resultForward->forward('noroute');
25-
return $resultForward;
26-
} else {
27-
/** @var \Magento\Framework\View\Result\Layout $resultLayout */
28-
$resultLayout = $this->resultFactory->create(ResultFactory::TYPE_LAYOUT);
24+
return $resultForward->forward('noroute');
2925
}
3026

31-
return $resultLayout;
27+
return $this->resultFactory->create(ResultFactory::TYPE_LAYOUT);
3228
}
3329
}

0 commit comments

Comments
 (0)