Skip to content

Commit 51a4a44

Browse files
committed
kotlin: Omit return if there is no return type
1 parent 8af8b5f commit 51a4a44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/svix_lib_resource.kt.jinja

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ class {{ resource_type_name }} internal constructor(token: String, options: Svix
8484
{%- endif %}
8585
{
8686
try {
87-
return api.{{ op.id | to_lower_camel_case }}(
87+
{% if op.response_body_schema_name is defined %}return {% endif -%}
88+
api.{{ op.id | to_lower_camel_case }}(
8889
{# path parameters -#}
8990
{% for p in op.path_params -%}
9091
{{ p | to_lower_camel_case }},

0 commit comments

Comments
 (0)