-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
good first issueGood for newcomersGood for newcomersruleImplementing or modifying a lint ruleImplementing or modifying a lint rule
Description
See: https://github.com/sbdchd/flake8-pie#pie801-prefer-simple-return.
In that example:
# error
def main():
if foo > 5:
return True
return False
# error
def main():
if foo > 5:
return True
else:
return False
# ok
def main():
return foo > 5We catch the second case, but not the first.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomersruleImplementing or modifying a lint ruleImplementing or modifying a lint rule