fix lint
This commit is contained in:
parent
c87375588e
commit
1b990d9acd
1 changed files with 6 additions and 1 deletions
|
|
@ -143,7 +143,12 @@ func (t *ReadFileTool) Execute(ctx context.Context, args map[string]any) *ToolRe
|
||||||
|
|
||||||
// Lock the binaries now before using more RAM
|
// Lock the binaries now before using more RAM
|
||||||
if isBinaryFile(header) {
|
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
|
// If it is text, let's read the rest of the file
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue