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:
1 | + | if value == 1 and False: | |
2 | + | foo_bar() |
This code will always evaluate the same value regardless of the inputs.
Read more