resolve makezero linter error

This commit is contained in:
afjcjsbx
2026-03-04 23:05:52 +01:00
parent 1b990d9acd
commit 47d7b9b04c
+3 -1
View File
@@ -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))
}