chore: cleanup unusued variables + enable linting (#38898)

This commit is contained in:
Milan Burda 2023-06-26 11:51:54 +02:00 committed by GitHub
parent e900f6ecc3
commit ef6569b7d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 31 additions and 89 deletions

View file

@ -1,4 +1,4 @@
const { app, safeStorage, ipcMain } = require('electron');
const { app, safeStorage } = require('electron');
const { promises: fs } = require('node:fs');
const path = require('node:path');
@ -7,6 +7,6 @@ const writeFile = fs.writeFile;
app.whenReady().then(async () => {
const encrypted = safeStorage.encryptString('plaintext');
const encryptedString = await writeFile(pathToEncryptedString, encrypted);
await writeFile(pathToEncryptedString, encrypted);
app.quit();
});