Skip to content

Commit 1240f40

Browse files
committed
Swift syntax fix
1 parent 178d7f6 commit 1240f40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/swift/base/params.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{%- else -%} let
1111
{%- endif %} params: [String: Any?] = [
1212
{%~ for parameter in method.parameters.query | merge(method.parameters.body) %}
13-
"{{ parameter.name }}": {{ parameter.name | caseCamel | escapeKeyword }}{% if not loop.last %},{% endif %}
13+
"{{ parameter.name }}": {{ parameter.name | caseCamel | escapeKeyword }}{% if not loop.last or method.auth | length > 0 %},{% endif %}
1414

1515
{%~ endfor %}
1616
{%~ if method.auth | length > 0 %}

0 commit comments

Comments
 (0)