mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 23:44:59 +01:00
more lint
This commit is contained in:
parent
b366dbb460
commit
188190888b
@ -392,10 +392,11 @@ ipcMain.on('ipcCall', async function(ev, payload) {
|
||||
try {
|
||||
const randomArray = await new Promise((resolve, reject) => {
|
||||
crypto.randomBytes(32, (err, buf) => {
|
||||
if (err)
|
||||
if (err) {
|
||||
reject(err);
|
||||
else
|
||||
} else {
|
||||
resolve(buf);
|
||||
}
|
||||
});
|
||||
});
|
||||
const pickleKey = randomArray.toString("base64").replace(/=+$/g, '');
|
||||
|
Loading…
Reference in New Issue
Block a user