Fix duplicate declarations and unused matchRanges in edit.ts

This commit is contained in:
Christian Gunderman
2026-02-26 01:28:38 +00:00
parent 5ce0d90203
commit cf3c420f02
+1 -2
View File
@@ -875,8 +875,6 @@ class EditToolInvocation
};
}
const totalLength = finalContent.split(String.fromCharCode(10)).length;
const metadataParts = [];
const totalLength = finalContent.split(String.fromCharCode(10)).length;
const metadataParts = [];
if (editData.matchRanges && editData.matchRanges.length > 0) {
@@ -1256,6 +1254,7 @@ async function calculateFuzzyReplacement(
finalOldString: normalizedSearch,
finalNewString: normalizedReplace,
strategy: 'fuzzy',
matchRanges,
};
}