From 5c1195ac3f1e9e14e16f00974ac2feea42485a62 Mon Sep 17 00:00:00 2001 From: Burcu Dogan Date: Fri, 30 May 2014 13:02:54 +0200 Subject: [PATCH] Constructor can't return an error for Compute Engine confs. --- google/google.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/google/google.go b/google/google.go index 4f1480e..8703fc2 100644 --- a/google/google.go +++ b/google/google.go @@ -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.