mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 23:42:03 +00:00
Use parameter properties where possible. (#242)
This commit is contained in:
parent
a7679db6e9
commit
539ab947a4
12 changed files with 18 additions and 53 deletions
|
|
@ -41,9 +41,7 @@ export class WriteFileTool extends BaseTool<WriteFileToolParams, ToolResult> {
|
|||
static readonly Name: string = 'write_file';
|
||||
private shouldAlwaysWrite = false;
|
||||
|
||||
private readonly rootDirectory: string;
|
||||
|
||||
constructor(rootDirectory: string) {
|
||||
constructor(private readonly rootDirectory: string) {
|
||||
super(
|
||||
WriteFileTool.Name,
|
||||
'WriteFile',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue