mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-21 02:06:03 +02:00
Lint issue
This commit is contained in:
parent
eaffde9d3b
commit
a84bbb5d3a
1 changed files with 1 additions and 4 deletions
|
@ -251,10 +251,7 @@ class DomainSecurityEmailView(DomainPermissionView, FormMixin):
|
|||
domain = self.get_object()
|
||||
initial = super().get_initial()
|
||||
security_contact = domain.security_contact
|
||||
if (
|
||||
security_contact is None or
|
||||
security_contact.email == "dotgov@cisa.dhs.gov"
|
||||
):
|
||||
if security_contact is None or security_contact.email == "dotgov@cisa.dhs.gov":
|
||||
initial["security_email"] = None
|
||||
return initial
|
||||
initial["security_email"] = security_contact.email
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue