Skip to content

The left and the right parts of assignment are equal #12515

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

lfluvisotto
Copy link
Contributor

The left and the right parts of assignment are equal

Description

Unnecessary assignment

Fixed Issues (if relevant)

N/A

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@@ -91,9 +91,7 @@ protected function _preparelayout()
public function getFormHtml()
{
$formHtml = parent::getFormHtml();
if (!$this->_storeManager->isSingleStoreMode() && $this->getVariable()->getId()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this may be simplified to return parent::getFormHtml();

@ishakhsuvarov ishakhsuvarov self-assigned this Dec 1, 2017
@ishakhsuvarov ishakhsuvarov added this to the December 2017 milestone Dec 1, 2017
@ishakhsuvarov
Copy link
Contributor

@lfluvisotto Thanks for the quick update!

@ishakhsuvarov
Copy link
Contributor

Now method pretty much looks like it can be removed completely, however I would keep it to decrease possibility of any side effects.

@magento-team magento-team merged commit a3ed399 into magento:2.2-develop Dec 1, 2017
@lfluvisotto lfluvisotto deleted the left-right-assigment-are-equal branch November 22, 2019 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants