mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-09-24 16:05:44 +08:00
fix: repair CI build & lint regressions on main
- openai_gateway_model_availability.go: pass platform through to listSchedulableAccounts so OpenAI/Grok diagnosis scopes to the correct candidate pool (build break introduced by Grok subscription PR #3310). - no_account_error.go: drop redundant context.Context type on ctx := context.Background() to satisfy staticcheck ST1023.
This commit is contained in:
@@ -101,7 +101,7 @@ func classifyNoAccountErrorFromGin(
|
||||
displayModel string,
|
||||
platform string,
|
||||
) noAccountErrorClassification {
|
||||
var ctx context.Context = context.Background()
|
||||
ctx := context.Background()
|
||||
if c != nil && c.Request != nil {
|
||||
ctx = c.Request.Context()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user