Skip to content

Commit 3545496

Browse files
committed
remove some dead code
1 parent da750ce commit 3545496

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

django_typer/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2098,10 +2098,9 @@ def __getattr__(cls, name: str) -> t.Any:
20982098
if called_from_command_definition():
20992099
if name in cls._defined_groups:
21002100
return cls._defined_groups[name]
2101-
elif cls.typer_app:
2102-
found = _bfs_match(cls.typer_app, name)
2103-
if found:
2104-
return found
2101+
found = _bfs_match(cls.typer_app, name)
2102+
if found:
2103+
return found
21052104
raise AttributeError(
21062105
"{cls} object has no attribute {name}".format(cls=cls.__name__, name=name)
21072106
)

0 commit comments

Comments
 (0)