From e443a6a1eaa66b3b32a12df15a534e5a5b460ccc Mon Sep 17 00:00:00 2001 From: Rose Ding Date: Thu, 19 Mar 2026 21:14:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=20staticcheck=20S1005?= =?UTF-8?q?=20=E8=AD=A6=E5=91=8A=E7=9A=84=E5=A4=9A=E4=BD=99=20blank=20iden?= =?UTF-8?q?tifier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- backend/internal/pkg/apicompat/anthropic_to_responses.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/internal/pkg/apicompat/anthropic_to_responses.go b/backend/internal/pkg/apicompat/anthropic_to_responses.go index a8106da4..fca3cf1f 100644 --- a/backend/internal/pkg/apicompat/anthropic_to_responses.go +++ b/backend/internal/pkg/apicompat/anthropic_to_responses.go @@ -431,7 +431,7 @@ func normalizeToolParameters(schema json.RawMessage) json.RawMessage { return schema } - typ, _ := m["type"] + typ := m["type"] if string(typ) != `"object"` { return schema }