-
Notifications
You must be signed in to change notification settings - Fork 38.7k
refactor, wallet: Avoid variable shadowing #27087
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
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsNo conflicts as of last run. |
|
cc @furszy |
furszy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could remove the top variable instead of renaming the internal one: furszy@3fb01a9.
c05c364 to
3fb01a9
Compare
Thanks! Done. |
stickies-v
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 3fb01a9
furszy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 3fb01a9
|
There are currently multiple instances of |
It was not about compiler warning, rather about code readability.
Probably subjective, but there was some extra mental burden while reviewing other PRs which touch this code.
I hoped that just renaming (the first version of this PR) will not introduce any conflicts. |
This PR is a follow up of #26661 that introduced a local variable shadowing which I've noticed while reviewing #25665.