mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-16 20:48:37 -04:00
- simplify if statement
- use the template.get_reply_to_text() in send_notification, it's already using the right thing.
This commit is contained in:
@@ -633,8 +633,7 @@ class TemplateBase(db.Model):
|
||||
|
||||
def get_reply_to_text(self):
|
||||
if self.template_type == LETTER_TYPE:
|
||||
if self.service_letter_contact_id is not None:
|
||||
return self.service_letter_contact.contact_block
|
||||
return self.service_letter_contact.contact_block if self.service_letter_contact else None
|
||||
elif self.template_type == EMAIL_TYPE:
|
||||
return self.service.get_default_reply_to_email_address()
|
||||
elif self.template_type == SMS_TYPE:
|
||||
|
||||
Reference in New Issue
Block a user