From 3509d3d5af3e2744d5de3de37b3613bd1c6efd06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 11 Mar 2020 12:05:34 +0100 Subject: [PATCH] electron-main: Fix a couple of lint errors. --- src/electron-main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/electron-main.js b/src/electron-main.js index 33c6acf..9afdc1b 100644 --- a/src/electron-main.js +++ b/src/electron-main.js @@ -51,7 +51,7 @@ let ReindexError; const seshatPassphrase = "DEFAULT_PASSPHRASE"; try { - seshatModule = require('matrix-seshat'); + const seshatModule = require('matrix-seshat'); Seshat = seshatModule.Seshat; SeshatRecovery = seshatModule.SeshatRecovery; ReindexError = seshatModule.ReindexError; @@ -373,12 +373,12 @@ ipcMain.on('seshat', async function(ev, payload) { // reindex the database and finally try to open the // database again. try { - recoveryIndex = new SeshatRecovery(eventStorePath, { - passphrase: seshatPassphrase + const recoveryIndex = new SeshatRecovery(eventStorePath, { + passphrase: seshatPassphrase, }); await recoveryIndex.reindex(); eventIndex = new Seshat(eventStorePath, { - passphrase: seshatPassphrase + passphrase: seshatPassphrase, }); } catch (e) { sendError(payload.id, e);