Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

add cfg.LoadAndValidate back #90

Merged
merged 1 commit into from
Nov 5, 2019

Conversation

yukinying
Copy link
Contributor

As a break fix for #89 and #85 (comment)

@yukinying
Copy link
Contributor Author

@morgante PTAL. Thank you.

cfg := &converter.Config{
Project: project,
Credentials: credentials,
}
if !offline {
Copy link

Choose a reason for hiding this comment

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

Could you just check for a nil config/client instead of needing to pass this boolean around?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The client is cfg so it was not pass into this function. I am also very tempted to extract cfg construction out of this function but @morgante may know better if it is the right way.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm fine with it as-is.

@morgante morgante merged commit e0cb1b5 into GoogleCloudPlatform:master Nov 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants