Skip to content
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

Chore: Code improvements to block PHP files. #17288

Merged
merged 1 commit into from Sep 2, 2019

Conversation

jorgefilipecosta
Copy link
Member

Description

This PR applies simple changes to remove useless assignments in some block PHP files (where we can return immediately). The PR also applies changes to return immediately and void nested if-else in the archives block.

How has this been tested?

This is just a simple code change. I just did some smoke tests in the tested block (special emphasize on archive block).

@jorgefilipecosta jorgefilipecosta added the [Type] Code Quality Issues or PRs that relate to code quality label Aug 31, 2019
Copy link
Contributor

@talldan talldan left a comment

Choose a reason for hiding this comment

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

I tested the blocks and they all seem to be working well. Nice one 👍

@talldan talldan merged commit f1b2f29 into master Sep 2, 2019
@talldan talldan deleted the update/chore/code-improvements-in-block-PHP-files branch September 2, 2019 07:34
@youknowriad youknowriad added this to the Gutenberg 6.5 milestone Sep 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants