mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-21 17:23:37 -07:00
Fix duplicate declarations and unused matchRanges in edit.ts
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user