fix(opencode): apply De Morgan for staticcheck QF1001

golangci-lint failed on the CN/OpenCode billing-candidate guard.
This commit is contained in:
刘佳林
2026-09-11 15:47:23 +08:00
parent efcc2252e5
commit 22dffa1bb9
@@ -918,7 +918,7 @@ func groupMediaPricingLooksIncomplete(group *Group) bool {
// 运营者的修复手段是配置账号级 model_mapping(映射到已定价的 CN 模型)或
// 分组/渠道显式定价。
func (s *OpenAIGatewayService) filterCNProviderBillingModelCandidates(ctx context.Context, account *Account, apiKey *APIKey, candidates []string) []string {
if account == nil || !(account.IsCNProvider() || account.IsOpenCodeGo()) {
if account == nil || (!account.IsCNProvider() && !account.IsOpenCodeGo()) {
return candidates
}
out := make([]string, 0, len(candidates))