Skip to content

Commit b7ba298

Browse files
committed
Remove unnecessary comments referencing #4827
Addresses comment by @cte in PR #4840 to remove redundant inline comments that reference the issue number, as this information is already captured in the commit history and PR description.
1 parent 53f9f28 commit b7ba298

File tree

5 files changed

+0
-13
lines changed

5 files changed

+0
-13
lines changed

src/core/tools/applyDiffTool.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,6 @@ export async function applyDiffToolLegacy(
165165
return
166166
}
167167

168-
// Checkpoint is now created in askApproval function before this point (fixes #4827)
169-
170168
// Call saveChanges to update the DiffViewProvider properties
171169
await cline.diffViewProvider.saveChanges()
172170

src/core/tools/insertContentTool.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ export async function insertContentTool(
140140
return
141141
}
142142

143-
// Checkpoint is now created in askApproval function before this point (fixes #4827)
144-
145143
// Call saveChanges to update the DiffViewProvider properties
146144
await cline.diffViewProvider.saveChanges()
147145

src/core/tools/multiApplyDiffTool.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ Original error: ${errorMessage}`
302302
updateOperationResult(opResult.path, { status: "approved" })
303303
})
304304

305-
// Create checkpoint BEFORE processing batch operations (fixes #4827)
306305
if (cline.enableCheckpoints) {
307306
await cline.checkpointSave()
308307
}
@@ -347,7 +346,6 @@ Original error: ${errorMessage}`
347346
cline.didRejectTool = true
348347
}
349348

350-
// Create checkpoint BEFORE processing approved operations (fixes #4827)
351349
if (hasAnyApproval && cline.enableCheckpoints) {
352350
await cline.checkpointSave()
353351
}
@@ -377,7 +375,6 @@ Original error: ${errorMessage}`
377375
cline.didRejectTool = true
378376
}
379377

380-
// Create checkpoint BEFORE processing approved operations (fixes #4827)
381378
if (hasAnyApproval && cline.enableCheckpoints) {
382379
await cline.checkpointSave()
383380
}
@@ -400,8 +397,6 @@ Original error: ${errorMessage}`
400397
updateOperationResult(opResult.path, { status: "approved" })
401398
}
402399

403-
// Checkpoint is now created in askApproval function before this point (fixes #4827)
404-
405400
// Process approved operations
406401
const results: string[] = []
407402

src/core/tools/searchAndReplaceTool.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,6 @@ export async function searchAndReplaceTool(
226226
return
227227
}
228228

229-
// Checkpoint is now created in askApproval function before this point (fixes #4827)
230-
231229
// Call saveChanges to update the DiffViewProvider properties
232230
await cline.diffViewProvider.saveChanges()
233231

src/core/tools/writeToFileTool.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,6 @@ export async function writeToFileTool(
212212
return
213213
}
214214

215-
// Checkpoint is now created in askApproval function before this point (fixes #4827)
216-
217215
// Call saveChanges to update the DiffViewProvider properties
218216
await cline.diffViewProvider.saveChanges()
219217

0 commit comments

Comments
 (0)