From 01359d82330caded871aa7d178b00d7bc2cd16f2 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Sat, 17 Jun 2023 08:50:42 -0700 Subject: Simplify Logic --- templates/macros/create_stork_toml.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'templates/macros/create_stork_toml.html') diff --git a/templates/macros/create_stork_toml.html b/templates/macros/create_stork_toml.html index f754e2e..ee1d765 100644 --- a/templates/macros/create_stork_toml.html +++ b/templates/macros/create_stork_toml.html @@ -7,9 +7,9 @@ {% endif -%} {%- endif -%} {%- endfor -%} -{%- if found -%}{%- if section.subsections -%}, +{%- if found and section.subsections -%}, {% for subsection in section.subsections -%} {{ self::from_section(section=subsection) }} {%- endfor -%} -{%- endif -%}{%- endif -%} -{%- endmacro from_section -%} \ No newline at end of file +{%- endif -%} +{%- endmacro from_section -%} -- cgit v1.3.1