Skip to content

Commit f44acc7

Browse files
committed
Remove incorrect condition, use if/else.
The second if clause had the wrong condition. Remove it and use a single if/else block as this is cleaner.
1 parent 0891f1c commit f44acc7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flask_autodoc/templates/autodoc_default.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ <h1>
6060
{% for method in doc.methods -%}
6161
{% if method == 'GET' and doc.args == ['None'] %}
6262
<a href="{{doc.rule}}" class="getmethod">
63-
{% endif %}
64-
<li class="method">{{method}}</li>
65-
{% if method == 'GET' %}
63+
<li class="method">{{method}}</li>
6664
</a>
65+
{% else %}
66+
<li class="method">{{method}}</li>
6767
{% endif %}
6868
{% endfor %}
6969
</ul>

0 commit comments

Comments
 (0)