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

Remove unreachable lines #17563

Merged
merged 1 commit into from
Jun 12, 2020
Merged

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jun 9, 2020

Overview

Follow up from
#17556

Before

Unreachable lines

After

Gone

Technical Details

@mattwire agreed a follow up is useful. I've added a couple of related changes I identified in the shorter function

Comments

@civibot
Copy link

civibot bot commented Jun 9, 2020

(Standard links)

@civibot civibot bot added the master label Jun 9, 2020
@@ -1852,12 +1852,6 @@ public static function processMembership($contactID, $membershipTypeID, $is_test
if (!empty($membershipSource)) {
$currentMembership['source'] = $membershipSource;
}
else {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can demonstrate on the other function with a test that we don't need to pass this in if unchanged

@yashodha
Copy link
Contributor

@eileenmcnaughton looks good

@seamuslee001 seamuslee001 merged commit 1626aaa into civicrm:master Jun 12, 2020
@seamuslee001 seamuslee001 deleted the pending branch June 12, 2020 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants