Skip to content

Commit 17bcf1a

Browse files
committed
Fix spacing
1 parent 4d59219 commit 17bcf1a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

templates/ruby/base/params.twig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
path = '{{ method.path }}'
1+
path = '{{ method.path }}'
22
{% for parameter in method.parameters.path %}
3-
.gsub('{{ '{' }}{{ parameter.name }}{{ '}' }}', {{ parameter.name | caseSnake | escapeKeyword }})
3+
.gsub('{{ '{' }}{{ parameter.name }}{{ '}' }}', {{ parameter.name | caseSnake | escapeKeyword }})
44
{% endfor %}
55

66
{% for parameter in method.parameters.all %}
77
{% if parameter.required %}
8-
if {{ parameter.name | caseSnake | escapeKeyword }}.nil?
9-
raise {{spec.title | caseUcfirst}}::Exception.new('Missing required parameter: "{{ parameter.name | caseCamel | escapeKeyword }}"')
10-
end
8+
if {{ parameter.name | caseSnake | escapeKeyword }}.nil?
9+
raise {{spec.title | caseUcfirst}}::Exception.new('Missing required parameter: "{{ parameter.name | caseCamel | escapeKeyword }}"')
10+
end
1111

1212
{% endif %}
1313
{% endfor %}

0 commit comments

Comments
 (0)