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 <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Pratt <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
1 parent 681b4d8 commit 9c82a8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oauth2.go

+1-1
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)