Avoid expressions that always evaluate to the same value

This code will always evaluate the same value regardless of the inputs.

It looks like the if statement will either always evaluate to True or always evaluate to False regardless of what inputs are used.

This is probably a typo or perhaps the code was for debugging and should not have been committed.

If our GitHub code review bot spots this issue in your pull request it gives this advice:

code-review-doctorbotsuggested changes just now
helpers.py
1
+
if value == 1 and False:
2
+
    foo_bar()

This code will always evaluate the same value regardless of the inputs.

Read more
Update helpers.py

Instantly check if you have this issue for free

    Works with tools you use

    Read about how it works.