Skip to content

Commit c1cd0d1

Browse files
authored
chore: remove ending comma in owlbot.py (#2595)
In this PR: - Remove the last comma in the `java.common_templates` method in `owlbot.py` This will align with `java.common_templates` generated by google-cloud-java's `generation/update_owlbot_postprocessor_config.sh`
1 parent a94c2f0 commit c1cd0d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library_generation/templates/owlbot.py.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ for library in s.get_staging_dirs():
2323
s.remove_staging_dirs()
2424
{% if should_include_templates %}java.common_templates(monorepo=True, {% if template_excludes %}excludes=[
2525
{%- for exclude in template_excludes %}
26-
"{{ exclude }}",
26+
"{{ exclude }}"{% if not loop.last %},{% endif %}
2727
{%- endfor %}
2828
]{% endif %}){% endif %}

library_generation/test/resources/goldens/owlbot-golden.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
"java.header",
3333
"license-checks.xml",
3434
"renovate.json",
35-
".gitignore",
35+
".gitignore"
3636
])

0 commit comments

Comments
 (0)