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

@@ -178,8 +178,8 @@ func (c *Config) AuthCodeURL(state string) (authURL string, err error) {
// t, _ := c.NewTransport()
// t.SetToken(validToken)
//
func (c *Config) NewTransport() (Transport, error) {
return NewAuthorizedTransport(c, nil), nil
func (c *Config) NewTransport() Transport {
return NewAuthorizedTransport(c, nil)
}
// NewTransportWithCode exchanges the OAuth 2.0 exchange code with