From a587920c4554e14c2a32a00db62d6f21419fb189 Mon Sep 17 00:00:00 2001 From: David Kennedy Date: Tue, 17 Oct 2023 21:59:33 -0400 Subject: [PATCH] bow down before the almighty linter --- src/registrar/models/domain.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/registrar/models/domain.py b/src/registrar/models/domain.py index f32da2403..e444f2a61 100644 --- a/src/registrar/models/domain.py +++ b/src/registrar/models/domain.py @@ -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