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

[NFC] Rename local variable #15377

Merged

Conversation

demeritcowboy
Copy link
Contributor

Overview

Every time I look at this block and see relTypes I need to spend a few minutes realizing it's not the same as apiCalls.relTypes, and in particular that relTypes.id here tracks back to apiCalls.relTypes.label.

Technical Details

Changes the name of a local variable in an anonymous function not used outside the block.

@civibot
Copy link

civibot bot commented Oct 2, 2019

(Standard links)

@civibot civibot bot added the master label Oct 2, 2019
@eileenmcnaughton
Copy link
Contributor

Yep - it is confusing!

@eileenmcnaughton eileenmcnaughton merged commit 23e3ece into civicrm:master Oct 3, 2019
@demeritcowboy
Copy link
Contributor Author

Thanks!

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