Skip to content

Commit

Permalink
Remove premature returns in init_notifier
Browse files Browse the repository at this point in the history
  • Loading branch information
IonesioJunior committed Sep 17, 2024
1 parent 0bfafa6 commit 3432593
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/syft/src/syft/service/notifier/notifier_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,19 +253,6 @@ def init_notifier(
Returns:
SyftSuccess
"""

if not smtp_host and not smtp_port:
logger.error(
"SMTP server and port are required to initialize the notifier."
)
return None

if not email_username and not email_password:
logger.error(
"Email username and password are required to initialize the notifier."
)
return None

try:
# Create a new NotifierStash since its a static method.
notifier_stash = NotifierStash(store=server.db)
Expand Down

0 comments on commit 3432593

Please sign in to comment.