Skip to content

Commit eaf95c8

Browse files
committed
refactor: remove unused extendReplacement variable
1 parent 9e9dc3e commit eaf95c8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/core/diff/strategies/multi-search-replace.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,6 @@ Only use a single line of '=======' between search and replacement content, beca
575575
const matchedLines = resultLines.slice(matchIndex, matchIndex + searchLines.length)
576576

577577
// Check for potential bracket duplication
578-
let extendReplacement = false
579578
let additionalLinesToReplace = 0
580579

581580
// Check if replacement ends with a closing bracket that's not in the search
@@ -594,7 +593,6 @@ Only use a single line of '=======' between search and replacement content, beca
594593
const nextLineBracket = this.isClosingBracketLine(resultLines[nextLineIndex])
595594
if (nextLineBracket === replaceBracket) {
596595
// Extend the replacement to include the bracket line
597-
extendReplacement = true
598596
additionalLinesToReplace = 1
599597

600598
// Also check for multiple consecutive bracket lines

0 commit comments

Comments
 (0)