From afdfd71648f3f8c170b4221106bb84522a8b7bfc Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 31 May 2025 20:54:21 +0200 Subject: [PATCH] Remove redundant code in main.js --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 7be1f00..7914638 100644 --- a/main.js +++ b/main.js @@ -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); } } //