Skip to content

Commit 47b04e1

Browse files
committed
fix: resolve duplicate state variable declaration in multiApplyDiffTool.ts
- Renamed the second 'state' variable to 'providerState' to fix TypeScript compilation error - This resolves the CI failures in compile, unit test, and integration test jobs
1 parent 353a9da commit 47b04e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/tools/multiApplyDiffTool.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,8 @@ Original error: ${errorMessage}`
412412

413413
// Apply HTML entity unescaping based on user setting
414414
let processedDiffItems = diffItems
415-
const state = (await cline.providerRef.deref()?.getState()) ?? {}
416-
const unescapeHtmlEntitiesInDiffs = (state as any).unescapeHtmlEntitiesInDiffs ?? false
415+
const providerState = (await cline.providerRef.deref()?.getState()) ?? {}
416+
const unescapeHtmlEntitiesInDiffs = (providerState as any).unescapeHtmlEntitiesInDiffs ?? false
417417

418418
if (unescapeHtmlEntitiesInDiffs && !cline.api.getModel().id.includes("claude")) {
419419
processedDiffItems = diffItems.map((item) => ({

0 commit comments

Comments
 (0)