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

Do not raise an error when calling resource_id if @connection is nil #416

Merged
merged 1 commit into from
May 19, 2022

Conversation

rbclark
Copy link
Contributor

@rbclark rbclark commented May 18, 2022

Description

@connection is only set if opts[:use_http_transport] is set, however if that is the case then calling resource_id raises an error. This adds safe navigation to connection in order to avoid this error.

Issues Resolved

This is an error I started encountering when testing changes related to googleapis/google-auth-library-ruby#354.

@rbclark rbclark requested a review from a team as a code owner May 18, 2022 21:50
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