-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
chore: Simplify boolean if
expression ✨
#2944
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.
@avaris - This is a small PR, but I don't see bugs. It passes tests. Merge? |
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.
Good to go, but probably with a squash merge. Not the best commit messages...
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.
Pull Request Checklist
Simplifies boolean if expressions by removing unnecessary explicit references to
True
orFalse
states.Rather than using an if-expression to evaluate a boolean, you can just use it directly. This is shorter and clearer, if expressions of this form take a while to mentally parse.