Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unneeded guard condition after GAPIC generator rollout of WithDefaultEndpointTemplate #2359

Closed
quartzmo opened this issue Jan 18, 2024 · 3 comments
Assignees
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: cleanup An internal cleanup or hygiene concern.

Comments

@quartzmo
Copy link
Member

Once the GAPIC generator rollout of WithDefaultEndpointTemplate is complete, remove the following guard condition from around internal/cba.go#L79:

&& settings.DefaultEndpointTemplate != ""

And uncomment the error check just below:

// if settings.DefaultEndpointTemplate == "" {
// 	return nil, "", errors.New("internaloption.WithDefaultEndpointTemplate is required if option.WithUniverseDomain is not googleapis.com")
// }
@quartzmo quartzmo added type: cleanup An internal cleanup or hygiene concern. priority: p3 Desirable enhancement or fix. May not be included in next release. labels Jan 18, 2024
@quartzmo quartzmo self-assigned this Jan 18, 2024
@codyoss
Copy link
Member

codyoss commented Jun 10, 2024

@quartzmo can this be acted on?

@quartzmo
Copy link
Member Author

@codyoss I removed every usage of DefaultEndpointTemplate that I could find. So now is as good as time as any. Thanks for the ping, I'll create a PR.

@codyoss
Copy link
Member

codyoss commented Aug 20, 2024

I believe this has been done for a bit now.

@codyoss codyoss closed this as completed Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: cleanup An internal cleanup or hygiene concern.
Projects
None yet
Development

No branches or pull requests

2 participants