diff --git a/etl/hubspot/hubspot_deal_differ.py b/etl/hubspot/hubspot_deal_differ.py index 636bf7521..68b075182 100644 --- a/etl/hubspot/hubspot_deal_differ.py +++ b/etl/hubspot/hubspot_deal_differ.py @@ -191,12 +191,11 @@ class HubspotDealDiffer: def _is_abri_condition_deal( new_deal: Dict[str, str], new_project: Optional[ProjectData] ) -> bool: - if ( - new_project is not None - and new_project["project_id"] - == HubspotDealDiffer.ABRI_CONDITION_ASSOCIATED_PROJECT_ID - ): - return True + if new_project is not None: + return ( + new_project["project_id"] + == HubspotDealDiffer.ABRI_CONDITION_ASSOCIATED_PROJECT_ID + ) new_project_code = (new_deal.get("project_code") or "").lower() return new_project_code == HubspotDealDiffer.ABRI_CONDITION_PROJECT_CODE.lower()