Pattern: Pointless statement
Issue: -
Used when a statement doesn't have (or at least seems to) any effect. This may lead to confusion by readers, side effects and increased code size. Update or remove such code to resolve this issue.
Example of incorrect code:
def test_method():
__revision__ <= 1 # [pointless-statement]
return "42"
Example of correct code:
def test_method():
return "42"