Skip to content

Commit

Permalink
enforces return from function
Browse files Browse the repository at this point in the history
  • Loading branch information
mkangia committed Dec 13, 2023
1 parent 7dd7038 commit ab268b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions corehq/tabs/tabclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -2069,12 +2069,14 @@ def _get_administration_section(domain):

def _get_manage_domain_alerts_section(domain):
from corehq.apps.domain.views.settings import ManageDomainAlertsView
section = []

if toggles.CUSTOM_DOMAIN_BANNER_ALERTS.enabled(domain):
return [{
section.append({
'title': _(ManageDomainAlertsView.page_title),
'url': reverse(ManageDomainAlertsView.urlname, args=[domain])
}]
})
return section


def _get_integration_section(domain, couch_user):
Expand Down

0 comments on commit ab268b6

Please sign in to comment.