Skip to content

Conversation

@sofisl
Copy link
Collaborator

@sofisl sofisl commented Jan 15, 2026

fixes this problem in this PR: https://github.com/googleapis/google-cloud-node/actions/runs/20862284893/job/59944732536

basically, the issue is that we're missing a type annotation since we're instantiating an empty array. But, we shouldn't even generate this array or iterate over it if it's going to be empty. So this code just adds a branch block to skip it.

@sofisl sofisl requested a review from a team as a code owner January 15, 2026 20:51
// and create an API call method for each.
const {{ service.name.toCamelCase() }}StubMethods =
[
{%- set stubMethodsContent %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the indentation on this funky? (sorry, super-nit)

// and create an API call method for each.
const {{ service.name.toCamelCase() }}StubMethods =
[
{%- set stubMethodsContent %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no actually! I ran the baseline test so it didn't end up changing anything currently

@sofisl sofisl merged commit 99c7bf3 into main Jan 15, 2026
13 checks passed
@sofisl sofisl deleted the fixStubCall branch January 15, 2026 22:02
@release-please release-please bot mentioned this pull request Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants