Skip to content

Commit 2a76f30

Browse files
committed
chore: Simplify conditionals
1 parent 0b300b0 commit 2a76f30

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/mkdocstrings_handlers/python/templates/material/_base/children.html.jinja

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,9 @@ Context:
3535
or (config.show_category_heading == "mod" and obj.kind.value == "module")
3636
%}
3737
{% set show_category_heading = true %}
38-
{% else %}
39-
{% set show_category_heading = false %}
40-
{% endif %}
41-
42-
{% if show_category_heading %}
4338
{% set extra_level = 1 %}
4439
{% else %}
40+
{% set show_category_heading = false %}
4541
{% set extra_level = 0 %}
4642
{% endif %}
4743

0 commit comments

Comments
 (0)