Fix credential file usage

main
Mari 4 years ago
parent a5a9183960
commit a2a415b2b3
  1. 2
      main.go

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

Loading…
Cancel
Save