Skip to content

Commit 9c82a8c

Browse files
cuishuanggopherbot
authored andcommitted
oauth2.go: use a more straightforward return value
Change-Id: I72d94836c93dabe50fe67ddb762389f674ba6490 Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/653215 Reviewed-by: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Pratt <mpratt@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
1 parent 681b4d8 commit 9c82a8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oauth2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ func (tf *tokenRefresher) Token() (*Token, error) {
288288
if tf.refreshToken != tk.RefreshToken {
289289
tf.refreshToken = tk.RefreshToken
290290
}
291-
return tk, err
291+
return tk, nil
292292
}
293293

294294
// reuseTokenSource is a TokenSource that holds a single token in memory

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy