|
|
@ -29,7 +29,7 @@ type TokenCache struct { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (c *TokenCache) Credentials() (*google.Credentials, error) { |
|
|
|
func (c *TokenCache) Credentials() (*google.Credentials, error) { |
|
|
|
if c.CredentialData != nil { |
|
|
|
if c.CredentialData == nil { |
|
|
|
f, err := os.Open(c.CredentialPath) |
|
|
|
f, err := os.Open(c.CredentialPath) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
return nil, fmt.Errorf("could not open credentials: %v", err) |
|
|
|
return nil, fmt.Errorf("could not open credentials: %v", err) |
|
|
|