From 137fcc02f1c8c41d4a31c66c9c847b9d80e96eb5 Mon Sep 17 00:00:00 2001 From: Mari Date: Wed, 14 Apr 2021 20:54:13 -0400 Subject: [PATCH] Remove remnants of config loading in credentials routine --- main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.go b/main.go index 2f8af40..a08aab2 100644 --- a/main.go +++ b/main.go @@ -40,11 +40,9 @@ func (c *TokenCache) Credentials() (*google.Credentials, error) { return nil, fmt.Errorf("could not read credentials: %v", err) } c.CredentialData, err = google.CredentialsFromJSON(context.Background(), data, c.CredentialScopes...) - err = json.NewDecoder(f).Decode(&c.ConfigData) if err != nil { - return nil, fmt.Errorf("could not decode config: %v", err) + return nil, fmt.Errorf("could not decode credentials: %v", err) } - c.configLoaded = true } return c.CredentialData, nil }