Skip to content

[Backport] Remove dead code #18431

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

Conversation

lewisvoncken
Copy link
Contributor

Original Pull Request

#17401
\Magento\Cms\Model\Page::load() returns $this thus the if condition will never evaluate as false. And since there is an id check afterwards anyways we should be save. Basically applies #17400 in 2.3 develop.

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)

\Magento\Cms\Model\Page::load() returns $this thus the
if condition will never evaluate as false. And since
there is an id check afterwards anyways we should be
save.
@rogyar
Copy link
Contributor

rogyar commented Oct 7, 2018

Hi @lewisvoncken. Thank you for your contribution. Please, consider fixing failing unit tests. Thank you

@sidolov
Copy link
Contributor

sidolov commented Oct 23, 2018

Hi @lewisvoncken , I am closing this PR now due to inactivity.
Please reopen and update if you wish to continue.
Thank you for the collaboration!

@sidolov sidolov closed this Oct 23, 2018
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.

5 participants