From b17a403bcdcf4d472c061286cf1bf702f9462ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 19 Nov 2019 12:36:31 +0100 Subject: [PATCH] electron-main: No need to normalize the path. --- electron_app/src/electron-main.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/electron_app/src/electron-main.js b/electron_app/src/electron-main.js index 6c487b3a6b..b1ed76c8f0 100644 --- a/electron_app/src/electron-main.js +++ b/electron_app/src/electron-main.js @@ -253,10 +253,9 @@ ipcMain.on('seshat', async function(ev, payload) { case 'initEventIndex': if (eventIndex === null) { - let p = path.normalize(eventStorePath); try { - await afs.mkdir(p, {recursive: true}); - eventIndex = new Seshat(p, {passphrase: "DEFAULT_PASSPHRASE"}); + await afs.mkdir(eventStorePath, {recursive: true}); + eventIndex = new Seshat(eventStorePath, {passphrase: "DEFAULT_PASSPHRASE"}); } catch (e) { sendError(payload.id, e); return; @@ -277,7 +276,7 @@ ipcMain.on('seshat', async function(ev, payload) { } try { - await deleteFolderRecursive(path.normalize(eventStorePath)); + await deleteFolderRecursive(eventStorePath); } catch (e) { }