We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b40e642 commit 32643f0Copy full SHA for 32643f0
templates/swift/Sources/Services/Service.swift.twig
@@ -31,7 +31,7 @@ open class {{ service.name | caseUcfirst }}: Service {
31
{%~ if 'multipart/form-data' in method.consumes %}
32
onProgress: ((UploadProgress) -> Void)? = nil
33
{%~ endif %}
34
- ){%~ if not method.type == "webAuth" %} async{% endif %} throws -> {{ method | returnType(spec) | raw }} {
+ ){%~ if method.type != "webAuth" %} async{% endif %} throws -> {{ method | returnType(spec) | raw }} {
35
{{~ include('swift/base/params.twig') }}
36
{%~ if method.type == 'webAuth' %}
37
{{~ include('swift/base/requests/OAuth.twig') }}
@@ -109,4 +109,4 @@ open class {{ service.name | caseUcfirst }}: Service {
109
110
{% endfor %}
111
112
-%}
+}
0 commit comments