File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
app/code/Magento/Review/Controller/Product Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -18,16 +18,12 @@ class ListAjax extends ProductController
18
18
*/
19
19
public function execute ()
20
20
{
21
- if (!$ this ->initProduct ()) {
21
+ if (!$ this ->initProduct ()) {
22
22
/** @var \Magento\Framework\Controller\Result\Forward $resultForward */
23
23
$ 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 ' );
29
25
}
30
26
31
- return $ resultLayout ;
27
+ return $ this -> resultFactory -> create (ResultFactory:: TYPE_LAYOUT ) ;
32
28
}
33
29
}
You can’t perform that action at this time.
0 commit comments