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 unnecessary pass-by-ref #23132

Merged
merged 1 commit into from
Apr 9, 2022
Merged

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Apr 7, 2022

Overview

Remove unnecessary pass-by-ref

Before

image

After

no more

Technical Details

Also stopped passing in a pass-by-ref variable in the function called from these places

image

Comments

Copy *& paste strikes again...

@civibot
Copy link

civibot bot commented Apr 7, 2022

(Standard links)

@civibot civibot bot added the master label Apr 7, 2022
@@ -150,7 +150,7 @@ protected function submitFileForMapping($parserClassName, $entity = NULL) {
$parser->setMaxLinesToProcess(100);
$parser->run($fileName,
$separator,
$mapper,
[],
Copy link
Member

Choose a reason for hiding this comment

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

Looks like you could also delete the now-unused variable $mapper

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@colemanw not quite yet

image

@eileenmcnaughton
Copy link
Contributor Author

rebased

@colemanw
Copy link
Member

colemanw commented Apr 9, 2022

Ok.

@colemanw colemanw merged commit 7603932 into civicrm:master Apr 9, 2022
@eileenmcnaughton eileenmcnaughton deleted the imp branch April 10, 2022 23:20
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.

2 participants