mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-25 18:01:57 -04:00
Remove unreachable code
An `if` statement higher up the page means this code will never get run now. We can simplify the template by removing it.
This commit is contained in:
@@ -34,18 +34,7 @@
|
||||
</span>
|
||||
{% endif %}
|
||||
{% endcall %}
|
||||
{% if template_statistics|length > 1 %}
|
||||
{{ spark_bar_field(item.count, most_used_template_count, id=item.template_id) }}
|
||||
{% else %}
|
||||
{% call field() %}
|
||||
<span id='{{item.template_id}}' class="heading-small">
|
||||
{{ big_number(
|
||||
item.count,
|
||||
smallest=True
|
||||
) }}
|
||||
</span>
|
||||
{% endcall %}
|
||||
{% endif %}
|
||||
{{ spark_bar_field(item.count, most_used_template_count, id=item.template_id) }}
|
||||
{% endcall %}
|
||||
{{ show_more(
|
||||
url_for('.template_usage', service_id=current_service.id),
|
||||
|
||||
Reference in New Issue
Block a user