From 020cae1228d2c5a30808baadf42444fdd91a3236 Mon Sep 17 00:00:00 2001 From: hermes Date: Mon, 26 Oct 2026 17:23:27 +0800 Subject: [PATCH] =?UTF-8?q?style:=20gofmt=20=E6=96=B0=E5=A2=9E=E7=9A=84?= =?UTF-8?q?=E5=8F=91=E7=8E=B0=E4=B8=8E=E8=B7=AF=E7=94=B1=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/dingtalkdiscovery/docs.go | 4 ++-- internal/dingtalkdiscovery/docs_test.go | 2 +- internal/httpapi/source_available_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/dingtalkdiscovery/docs.go b/internal/dingtalkdiscovery/docs.go index 1a1a86a..207db16 100644 --- a/internal/dingtalkdiscovery/docs.go +++ b/internal/dingtalkdiscovery/docs.go @@ -46,7 +46,7 @@ func SearchDocsArgs(query string, limit int) []string { // DocInfoArgs / SheetListArgs 是校验「这篇还能不能读」的只读命令: // 文档取元信息,表格取工作表清单——都真实打一次接口,不用缓存谎报可读。 -func DocInfoArgs(node string) []string { return []string{"doc", "info", "--node", node} } +func DocInfoArgs(node string) []string { return []string{"doc", "info", "--node", node} } func SheetListArgs(node string) []string { return []string{"sheet", "list", "--node", node} } // IsSheet 判断节点是否表格:表格要用 sheet 校验,文档用 doc。 @@ -190,4 +190,4 @@ func parseDocInfo(raw []byte) (DocumentNode, error) { return DocumentNode{}, errors.New("doc info has no title") } return doc, nil -} \ No newline at end of file +} diff --git a/internal/dingtalkdiscovery/docs_test.go b/internal/dingtalkdiscovery/docs_test.go index a7653e5..2f6c300 100644 --- a/internal/dingtalkdiscovery/docs_test.go +++ b/internal/dingtalkdiscovery/docs_test.go @@ -71,4 +71,4 @@ func TestValidateDocumentRejectsUnreadableNodes(t *testing.T) { if _, err := ValidateDocument(context.Background(), runner, " "); !errors.Is(err, ErrUnavailable) { t.Fatal("an empty node must not validate") } -} \ No newline at end of file +} diff --git a/internal/httpapi/source_available_test.go b/internal/httpapi/source_available_test.go index 50f0fbb..726f440 100644 --- a/internal/httpapi/source_available_test.go +++ b/internal/httpapi/source_available_test.go @@ -165,4 +165,4 @@ func TestValidateSourceSelectionRejectsEmptyAndOversizedSelections(t *testing.T) t.Fatalf("refs=%d status = %d, want 400", len(refs), rec.Code) } } -} \ No newline at end of file +}