Skip to content

Commit

Permalink
MAGETWO-72390: Remove the usage of the DataObject for response manage…
Browse files Browse the repository at this point in the history
…ment #10808
  • Loading branch information
ishakhsuvarov authored Sep 7, 2017
2 parents 5973d67 + 5a27387 commit c49bfeb
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,8 @@ public function __construct(
*/
public function execute()
{
$response = new \Magento\Framework\DataObject();
$response->setError(0);

$resultJson = $this->resultJsonFactory->create();
$resultJson->setData($response);
$resultJson->setData(['error' => 0]);

return $resultJson;
}
Expand Down

0 comments on commit c49bfeb

Please sign in to comment.