1
0

Fix return value when folder needs relocation or does not exist

This commit is contained in:
2025-05-25 05:19:08 +02:00
parent 9cc35b38c7
commit 9ab8a66cb9

View File

@@ -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)) {