Caches should return an error instead of invoking a handler.

This commit is contained in:
Burcu Dogan
2014-06-22 15:19:44 -07:00
parent 8387534dd5
commit ad322e7e30
4 changed files with 12 additions and 18 deletions

View File

@@ -177,7 +177,7 @@ func (t *authorizedTransport) RefreshToken() error {
t.token = token
if t.cache != nil {
t.cache.Write(token)
return t.cache.Write(token)
}
return nil