From 5a8f1086f1c33ad08ea517736c93ae5d4eb8ad84 Mon Sep 17 00:00:00 2001 From: Will Lachance Date: Mon, 20 May 2024 15:06:15 -0400 Subject: [PATCH] Remove extra if --- flask_mail.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/flask_mail.py b/flask_mail.py index c13abb2..1bdac3f 100644 --- a/flask_mail.py +++ b/flask_mail.py @@ -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)