modify variable name

This commit is contained in:
MaysWind
2025-10-21 21:33:49 +08:00
parent af56c3057c
commit 83bd8f23f4
+3 -3
View File
@@ -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 {