Skip to content

Commit

Permalink
tests: Sync pylint's no-else-return
Browse files Browse the repository at this point in the history
See https://pylint.readthedocs.io/en/latest/user_guide/messages/refactor/no-else-return.html for details.

Fixes: klen#238
Signed-off-by: Stanislav Levin <slev@altlinux.org>
  • Loading branch information
stanislavlevin committed May 16, 2023
1 parent 53ad214 commit 2093ce0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dummy.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ def __init__(self, filename, loc, use_column=True):
if test == 1:
if test == 1:
return 28
elif test == 2:
if test == 2:
return 28
return 28
elif test == 2:
if test == 2:
return 28

def __str__(self):
Expand Down

0 comments on commit 2093ce0

Please sign in to comment.