From 9ab8a66cb9e669f2c6043a3ac19181e98d9f096b Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sun, 25 May 2025 05:19:08 +0200 Subject: [PATCH] Fix return value when folder needs relocation or does not exist --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 94cf5f2..ee4b6ab 100644 --- a/main.js +++ b/main.js @@ -821,7 +821,7 @@ app.whenReady().then(() => { // Entferne das .git-Verzeichnis ipcMain.handle('remove-git-folder', async (_e, folderObj) => { if (folderObj.needsRelocation || !fs.existsSync(folderObj.path)) { - return false; + return; } const gitDir = path.join(folderObj.path, '.git'); if (fs.existsSync(gitDir)) {