Skip to content

Commit

Permalink
remove else block and return None by the outer conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedhamidawan committed Jul 1, 2024
1 parent a6e7081 commit 9727b88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/galaxy/managers/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,7 @@ def send_reset_email(self, trans, payload, **kwd):
except Exception as e:
log.debug(body)
return f"Failed to submit email. Please contact the administrator: {util.unicodify(e)}"
else:
return None
return None

def get_reset_token(self, trans, email):
reset_user = get_user_by_email(trans.sa_session, email, self.app.model.User)
Expand Down

0 comments on commit 9727b88

Please sign in to comment.