Skip to content

Commit 4224df5

Browse files
Make code check tool happy
1 parent 5d7d478 commit 4224df5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

aws_lambda_powertools/logging/logger.py

-2
Original file line numberDiff line numberDiff line change
@@ -745,8 +745,6 @@ def registered_handler(self) -> logging.Handler:
745745
# We ignore mypy here because self.child encodes whether or not self._logger.parent is
746746
# None, mypy can't see this from context but we can
747747
return self._get_handler()
748-
handlers = self._logger.parent.handlers if self.child else self._logger.handlers # type: ignore[union-attr]
749-
return handlers[0]
750748

751749
@property
752750
def registered_formatter(self) -> BasePowertoolsFormatter:

0 commit comments

Comments
 (0)