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

Circumvent the LGTM-Python check triggering #50213

Merged
merged 1 commit into from
Aug 2, 2021

Conversation

AMurkin
Copy link
Contributor

@AMurkin AMurkin commented Jul 25, 2021

Summary

None

Purpose of change

This circumvents the LGTM check (Unreachable statement) triggering.
And save 3 LOC.

Describe the solution

Rewrite block with list's emptiness check.

Describe alternatives you've considered

Wait for the nextgen LGTM.

Testing

CI should do it.

@lgtm-com
Copy link

lgtm-com bot commented Jul 25, 2021

This pull request fixes 1 alert when merging ca14a03 into ebb21f3 - view on LGTM.com

fixed alerts:

  • 1 for Unreachable code

@actual-nh actual-nh added <Bugfix> This is a fix for a bug (or closes open issue) [Python] Code made in Python Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style Code: Tests Measurement, self-control, statistics, balancing. labels Jul 25, 2021
@kevingranade kevingranade merged commit baa7a57 into CleverRaven:master Aug 2, 2021
@AMurkin AMurkin deleted the python-util-lol branch August 2, 2021 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style Code: Tests Measurement, self-control, statistics, balancing. [Python] Code made in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants