Skip to content

Commit

Permalink
Remove extra if
Browse files Browse the repository at this point in the history
  • Loading branch information
wlach committed May 20, 2024
1 parent e2a674e commit 5a8f108
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions flask_mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ def force_text(s, encoding="utf-8", errors="strict"):
Similar to smart_text, except that lazy instances are resolved to
strings, rather than kept as lazy objects.
"""
if isinstance(s, str):
return s

try:
if isinstance(s, str):
s = s.decode(encoding, errors)
Expand Down

0 comments on commit 5a8f108

Please sign in to comment.