Skip to content

Commit eaf75ee

Browse files
committed
fix(sidekick/rust): Remove newline at EOF in subtemplate
The newline is visible in generated code and breaks it.
1 parent fad8b7f commit eaf75ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/sidekick/rust/templates/common/client_method_samples/builder_fields.mustache

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ limitations under the License.
1616
Terminate each line in a comment so
1717
(a) we can read this code as each case is in a separate line,and
1818
(b) the newline is suppressed in the output to get tighter code.
19-
Also use no newline at the end of file so the the partials are all merged into a single line.
2019
}}{{#AIPStandardGetInfo}}{{!
2120
}}.set_{{ResourceNameRequestField.Codec.SetterName}}(resource_name){{!
2221
}}{{/AIPStandardGetInfo}}{{!
@@ -30,3 +29,6 @@ Also use no newline at the end of file so the the partials are all merged into a
3029
}}.set_{{ParentRequestField.Codec.SetterName}}(parent){{!
3130
}}{{/AIPStandardListInfo}}{{!
3231
}}{{^IsAIPStandard}}/* set fields */{{/IsAIPStandard}}
32+
{{!
33+
Use no newline at the end of file so the the partials are all merged into a single line.
34+
}}

0 commit comments

Comments
 (0)