π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
void
Manav Rathi7b16fa9f38cc
diff --git a/desktop/src/main/menu.ts b/desktop/src/main/menu.tsindex 5dd2b335ef..1019c7a8fb 100644--- a/desktop/src/main/menu.ts+++ b/desktop/src/main/menu.ts@@ -30,7 +30,7 @@ export const createApplicationMenu = async (mainWindow: BrowserWindow) => {const handleCheckForUpdates = () => forceCheckForAppUpdates(mainWindow);const handleViewChangelog = () =>- shell.openExternal(+ void shell.openExternal("https://github.com/ente-io/ente/blob/main/desktop/CHANGELOG.md",);@@ -46,13 +46,15 @@ export const createApplicationMenu = async (mainWindow: BrowserWindow) => {shouldHideDockIcon = !shouldHideDockIcon;};- const handleHelp = () => shell.openExternal("https://help.ente.io/photos/");+ const handleHelp = () =>+ void shell.openExternal("https://help.ente.io/photos/");- const handleSupport = () => shell.openExternal("mailto:[email protected]");+ const handleSupport = () =>+ void shell.openExternal("mailto:[email protected]");- const handleBlog = () => shell.openExternal("https://ente.io/blog/");+ const handleBlog = () => void shell.openExternal("https://ente.io/blog/");- const handleViewLogs = openLogDirectory;+ const handleViewLogs = () => void openLogDirectory();return Menu.buildFromTemplate([{diff --git a/desktop/src/main/services/app-update.ts b/desktop/src/main/services/app-update.tsindex a9e3109342..bc4bd38d6d 100644--- a/desktop/src/main/services/app-update.ts+++ b/desktop/src/main/services/app-update.ts@@ -12,7 +12,7 @@ export const setupAutoUpdater = (mainWindow: BrowserWindow) => {autoUpdater.autoDownload = false;const oneDay = 1 * 24 * 60 * 60 * 1000;- setInterval(() => checkForUpdatesAndNotify(mainWindow), oneDay);+ setInterval(() => void checkForUpdatesAndNotify(mainWindow), oneDay);void checkForUpdatesAndNotify(mainWindow);};diff --git a/desktop/src/main/stream.ts b/desktop/src/main/stream.tsindex b97900659f..3e27de12b4 100644--- a/desktop/src/main/stream.ts+++ b/desktop/src/main/stream.ts@@ -117,7 +117,7 @@ const handleReadZip = async (zipPath: string, entryName: string) => {// Close the zip handle when the underlying stream closes.// TODO(MR): Verify- stream.on("end", () => zip.close());+ stream.on("end", () => void zip.close());return new Response(webReadableStream, {headers: {@@ -173,17 +173,17 @@ export const writeStream = (filePath: string, readableStream: ReadableStream) =>const writeNodeStream = async (filePath: string, fileStream: Readable) => {const writeable = createWriteStream(filePath);- fileStream.on("error", (error) => {- writeable.destroy(error); // Close the writable stream with an error+ fileStream.on("error", (err) => {+ writeable.destroy(err); // Close the writable stream with an error});fileStream.pipe(writeable);await new Promise((resolve, reject) => {writeable.on("finish", resolve);- writeable.on("error", async (err: Error) => {+ writeable.on("error", (err) => {if (existsSync(filePath)) {- await fs.unlink(filePath);+ void fs.unlink(filePath);}reject(err);});