feat(linter): Fix govet linter

This commit is contained in:
Artem Yadelskyi
2026-02-20 22:35:16 +02:00
parent e883e14b81
commit 02b4d9fbe2
17 changed files with 29 additions and 61 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ func (t *EditFileTool) Execute(ctx context.Context, args map[string]any) *ToolRe
return ErrorResult(err.Error())
}
if _, err := os.Stat(resolvedPath); os.IsNotExist(err) {
if _, err = os.Stat(resolvedPath); os.IsNotExist(err) {
return ErrorResult(fmt.Sprintf("file not found: %s", path))
}