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

Removes redundant IF #13769

Merged
merged 1 commit into from
Mar 6, 2019
Merged

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Mar 5, 2019

Overview

Removes redundant code

Before

less readable

After

more readable

Technical Details

self::getRelatedMemberships already filters out empty rows. I left removing this
IF for it's own PR due to the legibility issues in the whitespace change

Comments

@mattwire

Note viewing like this

https://github.com/civicrm/civicrm-core/pull/13769/files?w=1

helps

 self::getRelatedMemberships already filters out empty rows. I left removing this
IF for it's own PR due to the legibility issues in the whitespace change
@civibot
Copy link

civibot bot commented Mar 5, 2019

(Standard links)

@civibot civibot bot added the master label Mar 5, 2019
@mattwire
Copy link
Contributor

mattwire commented Mar 5, 2019

Merge on pass. I made the same change in #12542. With the change in #13759 there will never be an empty $membership element in the array

@eileenmcnaughton
Copy link
Contributor Author

@mattwire yep & getting this changed merges will help a lot with readability on your patch

@eileenmcnaughton
Copy link
Contributor Author

unrelated fail - merging

@eileenmcnaughton eileenmcnaughton merged commit 80c6f13 into civicrm:master Mar 6, 2019
@eileenmcnaughton eileenmcnaughton deleted the matt branch March 6, 2019 01:11
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.

2 participants