Fix cleanupDisabledFiles function to use correct variable names

Co-authored-by: AstroSteveo <34114851+AstroSteveo@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-09-23 13:54:45 +00:00
parent 9367292d95
commit b02893cdee

View File

@ -263,13 +263,13 @@ function cleanupDisabledFiles(outputDir, effectivelyEnabledSets, rootDir) {
if (!effectivelyEnabledSets[section.name].has(itemName)) { if (!effectivelyEnabledSets[section.name].has(itemName)) {
const filePath = path.join(sectionDir, fileName); const filePath = path.join(sectionDir, fileName);
fs.unlinkSync(filePath); fs.unlinkSync(filePath);
cleanupSummary[section.name]++; removedCounts[section.name]++;
console.log(`🗑️ Removed: ${section.name}/${fileName}`); console.log(`🗑️ Removed: ${section.name}/${fileName}`);
} }
} }
} }
return cleanupSummary; return removedCounts;
} }
// CLI usage // CLI usage