-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Issue #6843] Simplify long conditionals #6846
[Issue #6843] Simplify long conditionals #6846
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @DanieSimonlLowe on file. In order for us to review and merge your code, please contact the project maintainers to get yourself added. |
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.
Please check the associated issue #6809 as this has specific information on what this PR should involve. Instances of if variable is None:
are not considered long conditionals and should be preferred as if not variable:
is not specific. Explicit is better than implicit.
0daa951
to
7bf5c60
Compare
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @DanieSimonlLowe on file. In order for us to review and merge your code, please contact the project maintainers to get yourself added. |
This pull request introduces 1 alert when merging 7bf5c60 into c796bac - view on LGTM.com new alerts:
|
7bf5c60
to
f44094d
Compare
Codecov Report
@@ Coverage Diff @@
## master #6846 +/- ##
==========================================
- Coverage 51.88% 51.87% -0.01%
==========================================
Files 573 573
Lines 40848 40846 -2
Branches 5500 5498 -2
==========================================
- Hits 21195 21190 -5
- Misses 18314 18315 +1
- Partials 1339 1341 +2 |
simplifyed some long conditionals.