Skip to content

Commit

Permalink
fix: pylint R1705: Unnecessary "else" after "return"
Browse files Browse the repository at this point in the history
  • Loading branch information
luisfelipec95 committed Dec 26, 2023
1 parent 7e3247e commit abea286
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eox_tagging/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,7 @@ def __get_model(self, attr, name):
field_value = getattr(self, f"{attr}_type")
if name:
return field_value
else:
return getattr(self, attr)
return getattr(self, attr)

def __get_field_choice(self, attr):
"""
Expand Down

0 comments on commit abea286

Please sign in to comment.