mirror of
https://github.com/golang/oauth2.git
synced 2025-07-21 00:00:09 +08:00
Constructor can't return an error for Compute Engine confs.
This commit is contained in:
parent
075fdd8e10
commit
5c1195ac3f
@ -108,8 +108,8 @@ func NewServiceAccountConfig(opts *oauth2.JWTOptions) (*oauth2.JWTConfig, error)
|
||||
// NewComputeEngineConfig creates a new config that can fetch tokens
|
||||
// from Google Compute Engine instance's metaserver. If no account is
|
||||
// provided, default is used.
|
||||
func NewComputeEngineConfig(account string) (*ComputeEngineConfig, error) {
|
||||
return &ComputeEngineConfig{account: account}, nil
|
||||
func NewComputeEngineConfig(account string) *ComputeEngineConfig {
|
||||
return &ComputeEngineConfig{account: account}
|
||||
}
|
||||
|
||||
// NewTransport creates an authorized transport.
|
||||
|
Loading…
x
Reference in New Issue
Block a user