Update prettier/eslint
This commit is contained in:
@@ -3,10 +3,7 @@ const fs = require('fs');
|
||||
const helpers = require('../../helpers');
|
||||
const os = require('os');
|
||||
|
||||
const addListeners = (
|
||||
ipcMain,
|
||||
{ setIsInstalling, unmountAllDrives, standardIPCReply }
|
||||
) => {
|
||||
const addListeners = (ipcMain, { setIsInstalling, unmountAllDrives, standardIPCReply }) => {
|
||||
ipcMain.on(Constants.IPC_Install_Upgrade, (event, data) => {
|
||||
let allowSkipVerification = true;
|
||||
|
||||
@@ -46,10 +43,7 @@ const addListeners = (
|
||||
//! (data.Sha256.length > 0);
|
||||
if (hasSignature) {
|
||||
try {
|
||||
const files = helpers.createSignatureFiles(
|
||||
data.Signature,
|
||||
Constants.DEV_PUBLIC_KEY
|
||||
);
|
||||
const files = helpers.createSignatureFiles(data.Signature, Constants.DEV_PUBLIC_KEY);
|
||||
tempPub = files.PublicKeyFile;
|
||||
tempSig = files.SignatureFile;
|
||||
} catch (e) {
|
||||
@@ -99,9 +93,7 @@ const addListeners = (
|
||||
executeInstall();
|
||||
})
|
||||
.catch(() => {
|
||||
errorHandler(
|
||||
Error('Failed to verify installation package signature')
|
||||
);
|
||||
errorHandler(Error('Failed to verify installation package signature'));
|
||||
});
|
||||
} else if (hasHash) {
|
||||
helpers
|
||||
|
||||
Reference in New Issue
Block a user