1
0

Remove redundant code in main.js

This commit is contained in:
2025-05-31 20:54:21 +02:00
parent d59ea7ac3f
commit afdfd71648

View File

@@ -538,7 +538,6 @@ async function rewordCommitsSequentially(repoPath, commitMessageMap, hashes) {
console.log(`[AutoGit] Reworded commit ${hash}`);
}
console.log('[AutoGit] All specified commit messages updated!');
win.webContents.send('repo-updated', folder);
}
/*
@@ -578,6 +577,7 @@ async function runLLMCommitRewrite(folderObj, win) {
const messageMap = {};
for (const entry of commitList) messageMap[entry.commit] = entry.newMessage;
await rewordCommitsSequentially(folderPath, messageMap, hashes);
win.webContents.send('repo-updated', folder);
}
}
//