From 47d7b9b04ccd97e9ebcf40c3a07f86336e8b6cdc Mon Sep 17 00:00:00 2001 From: afjcjsbx Date: Wed, 4 Mar 2026 23:05:52 +0100 Subject: [PATCH] resolve makezero linter error --- pkg/tools/filesystem.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/tools/filesystem.go b/pkg/tools/filesystem.go index dbd9261a5..17f67e3b0 100644 --- a/pkg/tools/filesystem.go +++ b/pkg/tools/filesystem.go @@ -159,7 +159,9 @@ func (t *ReadFileTool) Execute(ctx context.Context, args map[string]any) *ToolRe } // Recompose the complete content by merging the header and the rest - fullContent := append(header, rest...) + fullContent := make([]byte, 0, len(header)+len(rest)) + fullContent = append(fullContent, header...) + fullContent = append(fullContent, rest...) return NewToolResult(string(fullContent)) }