Skip to content

Commit 342bcce

Browse files
committed
fix error in test
1 parent db4156e commit 342bcce

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

backend/src/tools/handlers/tool/str-replace.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import type { Logger } from '@codebuff/common/types/contracts/logger'
1616
import type { ParamsExcluding } from '@codebuff/common/types/function-params'
1717
import type { WebSocket } from 'ws'
1818

19-
export const handleStrReplace = ((
19+
export function handleStrReplace(
2020
params: {
2121
previousToolCallFinished: Promise<void>
2222
toolCall: CodebuffToolCall<'str_replace'>
@@ -35,7 +35,7 @@ export const handleStrReplace = ((
3535
): {
3636
result: Promise<CodebuffToolOutput<'str_replace'>>
3737
state: FileProcessingState
38-
} => {
38+
} {
3939
const {
4040
previousToolCallFinished,
4141
toolCall,
@@ -103,4 +103,5 @@ export const handleStrReplace = ((
103103
}),
104104
state: fileProcessingState,
105105
}
106-
}) satisfies CodebuffToolHandlerFunction<'str_replace'>
106+
}
107+
handleStrReplace satisfies CodebuffToolHandlerFunction<'str_replace'>

0 commit comments

Comments
 (0)