From 1b990d9acd29229effbe60fb73cb473c76258cab Mon Sep 17 00:00:00 2001 From: afjcjsbx Date: Wed, 4 Mar 2026 22:59:58 +0100 Subject: [PATCH] fix lint --- pkg/tools/filesystem.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/tools/filesystem.go b/pkg/tools/filesystem.go index 3c518dd94..dbd9261a5 100644 --- a/pkg/tools/filesystem.go +++ b/pkg/tools/filesystem.go @@ -143,7 +143,12 @@ func (t *ReadFileTool) Execute(ctx context.Context, args map[string]any) *ToolRe // Lock the binaries now before using more RAM if isBinaryFile(header) { - return ErrorResult(fmt.Sprintf("cannot read file %q: appears to be a binary file (e.g., PDF, image, executable)", filepath.Base(path))) + return ErrorResult( + fmt.Sprintf( + "cannot read file %q: appears to be a binary file (e.g., PDF, image, executable)", + filepath.Base(path), + ), + ) } // If it is text, let's read the rest of the file