From b84d4699605b9240b10f30396567b79fff5ea014 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sun, 25 May 2025 05:20:49 +0200 Subject: [PATCH] Fix return value when folder needs relocation or does not exist during checkout --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 5e688c6..e2a1925 100644 --- a/main.js +++ b/main.js @@ -877,7 +877,7 @@ app.whenReady().then(() => { */ ipcMain.handle('checkout-commit', async (_e, folderObj, hash) => { if (folderObj.needsRelocation || !fs.existsSync(folderObj.path)) { - return false; + return; } const git = simpleGit(folderObj.path); // clean mode: alle lokalen Veränderungen verwerfen