mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-23 03:06:01 +02:00
bow down before the almighty linter
This commit is contained in:
parent
e248ae7760
commit
a587920c45
1 changed files with 2 additions and 6 deletions
|
@ -1698,17 +1698,13 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
old_cache_contacts = self._cache.get("contacts")
|
||||
|
||||
if fetch_contacts:
|
||||
cleaned["contacts"] = self._get_contacts(
|
||||
cleaned.get("_contacts", [])
|
||||
)
|
||||
cleaned["contacts"] = self._get_contacts(cleaned.get("_contacts", []))
|
||||
if old_cache_hosts is not None:
|
||||
logger.debug("resetting cleaned['hosts'] to old_cache_hosts")
|
||||
cleaned["hosts"] = old_cache_hosts
|
||||
|
||||
if fetch_hosts:
|
||||
cleaned["hosts"] = self._get_hosts(
|
||||
cleaned.get("_hosts", [])
|
||||
)
|
||||
cleaned["hosts"] = self._get_hosts(cleaned.get("_hosts", []))
|
||||
if old_cache_contacts is not None:
|
||||
cleaned["contacts"] = old_cache_contacts
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue