Skip to content

Commit 25b0343

Browse files
committed
Remove the usage of the DataObject for response management in the app/code/Magento/Catalog/Controller/Adminhtml/Category/Validate.php
1 parent 5973d67 commit 25b0343

File tree

1 file changed

+1
-4
lines changed
  • app/code/Magento/Catalog/Controller/Adminhtml/Category

1 file changed

+1
-4
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Category/Validate.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,8 @@ public function __construct(
3636
*/
3737
public function execute()
3838
{
39-
$response = new \Magento\Framework\DataObject();
40-
$response->setError(0);
41-
4239
$resultJson = $this->resultJsonFactory->create();
43-
$resultJson->setData($response);
40+
$resultJson->setData(['error' => 0]);
4441

4542
return $resultJson;
4643
}

0 commit comments

Comments
 (0)