Skip to content

Commit df53540

Browse files
authored
Refactoring: remove unuseful temporary variable
…since there is no usage of `$data` in this method
1 parent dcd0dbc commit df53540

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ public function execute()
126126
return $resultRedirect->setPath('catalog/*/', ['_current' => true, 'id' => null]);
127127
}
128128

129-
$data['general'] = $this->getRequest()->getPostValue();
130-
$categoryPostData = $data['general'];
129+
$categoryPostData = $this->getRequest()->getPostValue();
131130

132131
$isNewCategory = !isset($categoryPostData['entity_id']);
133132
$categoryPostData = $this->stringToBoolConverting($categoryPostData);

0 commit comments

Comments
 (0)