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

[Issue #6843] Simplify long conditionals #6846

Merged

Conversation

burner761
Copy link
Contributor

simplifyed some long conditionals.

@cla-bot
Copy link

cla-bot bot commented Jan 20, 2021

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.

Copy link
Contributor

@mtnorthcott mtnorthcott left a 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.

@burner761 burner761 force-pushed the danielLowe/6809-Simplify-long-conditionals branch from 0daa951 to 7bf5c60 Compare January 20, 2021 23:19
@cla-bot
Copy link

cla-bot bot commented Jan 20, 2021

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.

@lgtm-com
Copy link

lgtm-com bot commented Jan 20, 2021

This pull request introduces 1 alert when merging 7bf5c60 into c796bac - view on LGTM.com

new alerts:

  • 1 for Syntax error

@burner761 burner761 force-pushed the danielLowe/6809-Simplify-long-conditionals branch from 7bf5c60 to f44094d Compare January 21, 2021 21:04
@cla-bot cla-bot bot added the cla-signed CLA Bot: community license agreement signed label Jan 21, 2021
@mtnorthcott mtnorthcott requested a review from afabiani January 21, 2021 22:28
@mtnorthcott mtnorthcott changed the title #[6809] simplifyed some long conditionals [Issue #6843] Simplify long conditionals Jan 21, 2021
@afabiani afabiani added this to the 3.2 milestone Jan 27, 2021
@codecov
Copy link

codecov bot commented Feb 4, 2021

Codecov Report

Merging #6846 (bed94a0) into master (4e4bb7b) will decrease coverage by 0.00%.
The diff coverage is 14.81%.

@@            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     

@afabiani afabiani merged commit 2f26d10 into GeoNode:master Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed CLA Bot: community license agreement signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants