mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Remove unnecessary logic/fix tests
This commit is contained in:
@@ -275,19 +275,11 @@ def remove_notify_from_sender_options(sender_details):
|
||||
|
||||
|
||||
def verify_sender_options(sender):
|
||||
if sender.get("sms_sender") in ["Notify.gov", "US Notify"] and sender["is_default"]:
|
||||
return True
|
||||
if (
|
||||
sender.get("sms_sender") not in ["Notify.gov", "US Notify"]
|
||||
and not sender["is_default"]
|
||||
):
|
||||
return True
|
||||
if (
|
||||
sender.get("sms_sender") not in ["Notify.gov", "US Notify"]
|
||||
and sender["is_default"]
|
||||
):
|
||||
if sender.get("sms_sender") not in ["Notify.gov", "US Notify"]:
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
|
||||
def get_sender_context(sender_details, template_type):
|
||||
context = {
|
||||
|
||||
Reference in New Issue
Block a user