Skip to content

Commit d1a1932

Browse files
authored
Don't trim whitespace around commas in constructor params list (#10)
1 parent f9416d3 commit d1a1932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

avrotize/avrotots/class_core.ts.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class {{ class_name }} {
3636
public {{ field.name }}{%- if field.type.endswith('?')-%}?{%-endif-%} : {{ field.type_no_null }};
3737
{%- endfor %}
3838

39-
constructor({%- for field in fields %}{{ field.name }}: {{ field.type_no_null }}{%- if not loop.last %}, {%- endif %}{%- endfor %}) {
39+
constructor({%- for field in fields %}{{ field.name }}: {{ field.type_no_null }}{% if not loop.last %}, {% endif %}{%- endfor %}) {
4040
{%- for field in fields %}
4141
{%- if field.is_enum %}
4242
if ( typeof {{ field.name }} === 'number' ) {

0 commit comments

Comments
 (0)