-
Notifications
You must be signed in to change notification settings - Fork 734
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
style: simplify statements for readability #3143
base: master
Are you sure you want to change the base?
style: simplify statements for readability #3143
Conversation
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.
This shouldn't cause any user-facing changes.
The goal of this pull request is to improve code readability and maintainability.
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.
LGTM! Maybe reword the first commit message though – something like "examples: inline variables" would be better IMO.
Sure! I'll do that right now. |
90f2430
to
eeab913
Compare
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.
LGTM
eeab913
to
dcc257c
Compare
I just fixed a merge conflict. Are there any other changes I should make? |
Fixes #3142
Motivation
We can simplify some statements, like
to improve code readability.
Solution
We replace lines like
with