From 83bd8f23f4ff7fd4642363f5cb31d881a727dcc1 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Tue, 21 Oct 2025 21:33:49 +0800 Subject: [PATCH] modify variable name --- pkg/auth/oauth2/oauth2_context.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/auth/oauth2/oauth2_context.go b/pkg/auth/oauth2/oauth2_context.go index fb79dd74..4d092818 100644 --- a/pkg/auth/oauth2/oauth2_context.go +++ b/pkg/auth/oauth2/oauth2_context.go @@ -15,12 +15,12 @@ type OAuth2Context struct { } // 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 { - 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 {