Avoid returning non-existent errors.

This commit is contained in:
Burcu Dogan
2014-05-15 12:09:36 +02:00
parent 6c54258546
commit 643fd905db
3 changed files with 8 additions and 8 deletions

View File

@@ -123,8 +123,8 @@ func NewComputeEngineConfig(account string) (*ComputeEngineConfig, error) {
}
// NewTransport creates an authorized transport.
func (c *ComputeEngineConfig) NewTransport() (oauth2.Transport, error) {
return oauth2.NewAuthorizedTransport(c, nil), nil
func (c *ComputeEngineConfig) NewTransport() oauth2.Transport {
return oauth2.NewAuthorizedTransport(c, nil)
}
// FetchToken retrieves a new access token via metadata server.