Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions agent/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1139,21 +1139,8 @@ ${yml}

// Create diff if file exists and content has changed
let diffResult = null;
console.log("Checking for diff. File exists:", fileExists);
console.log(
"Content changed:",
fileExists && existingContent !== regression,
);
if (fileExists) {
console.log(
"Existing content preview:",
existingContent.substring(0, 100),
);
console.log("New content preview:", regression.substring(0, 100));
}

if (fileExists && existingContent !== regression) {
console.log("Creating diff - content has changed");
const patches = diff.structuredPatch(
filepath,
filepath,
Expand Down Expand Up @@ -1241,8 +1228,6 @@ ${yml}
diff: diffResult,
timestamp: endTime,
});
} else {
console.log("No diff result to emit");
}
Copy link

Copilot AI Aug 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The else block at line 1231 appears to be empty after removing the console.log statement. Consider removing the entire else block if it serves no purpose.

Copilot uses AI. Check for mistakes.

// Emit file save completion event
Expand Down