From abea286e775e2ddb532849badc80457433ad883b Mon Sep 17 00:00:00 2001 From: Luis Felipe Castano Date: Tue, 26 Dec 2023 18:17:40 -0500 Subject: [PATCH] fix: pylint R1705: Unnecessary "else" after "return" --- eox_tagging/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eox_tagging/models.py b/eox_tagging/models.py index dc05102..695f478 100644 --- a/eox_tagging/models.py +++ b/eox_tagging/models.py @@ -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): """