oauth2: remove misleading Transport.RoundTrip comment

This removes any assumption about how the underlying TokenSource is
implemented.

Change-Id: I03521e2f26bd07e25eb6ba00a78c285ece1835cc
Reviewed-on: https://go-review.googlesource.com/114955
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Tim Cooper 2018-05-28 17:23:04 -03:00 committed by Brad Fitzpatrick
parent 30b72dfc06
commit ec22f46f87
1 changed files with 1 additions and 2 deletions

View File

@ -31,8 +31,7 @@ type Transport struct {
} }
// RoundTrip authorizes and authenticates the request with an // RoundTrip authorizes and authenticates the request with an
// access token. If no token exists or token is expired, // access token from Transport's Source.
// tries to refresh/fetch a new token.
func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) { func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) {
reqBodyClosed := false reqBodyClosed := false
if req.Body != nil { if req.Body != nil {