Skip to content

Commit

Permalink
oauth2.go: use a more straightforward return value
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
cuishuang authored and gopherbot committed Feb 28, 2025
1 parent 681b4d8 commit 9c82a8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oauth2.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func (tf *tokenRefresher) Token() (*Token, error) {
if tf.refreshToken != tk.RefreshToken {
tf.refreshToken = tk.RefreshToken
}
return tk, err
return tk, nil
}

// reuseTokenSource is a TokenSource that holds a single token in memory
Expand Down

0 comments on commit 9c82a8c

Please sign in to comment.