mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
modify variable name
This commit is contained in:
@@ -15,12 +15,12 @@ type OAuth2Context struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Value returns the value associated with key
|
// Value returns the value associated with key
|
||||||
func (o *OAuth2Context) Value(key any) any {
|
func (c *OAuth2Context) Value(key any) any {
|
||||||
if key == oauth2.HTTPClient {
|
if key == oauth2.HTTPClient {
|
||||||
return o.httpClient
|
return c.httpClient
|
||||||
}
|
}
|
||||||
|
|
||||||
return o.Context.Value(key)
|
return c.Context.Value(key)
|
||||||
}
|
}
|
||||||
|
|
||||||
func wrapOAuth2Context(ctx core.Context, httpClient *http.Client) core.Context {
|
func wrapOAuth2Context(ctx core.Context, httpClient *http.Client) core.Context {
|
||||||
|
|||||||
Reference in New Issue
Block a user