From 4a1bac260bd34adccf331a4dfcd7824e5f4212a5 Mon Sep 17 00:00:00 2001 From: Agampreet Singh <68941022+agam778@users.noreply.github.com> Date: Sat, 24 Sep 2022 22:58:52 +0530 Subject: [PATCH] Fix eslint errors --- main.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/main.js b/main.js index 349ccd1..263f3d1 100644 --- a/main.js +++ b/main.js @@ -552,7 +552,6 @@ app.on("web-contents-created", (event, contents) => { if (store.get("websites-in-new-window") === "false") { event.preventDefault(); BrowserWindow.getFocusedWindow().loadURL(url); - } else { } }); }); @@ -572,13 +571,13 @@ app.on("activate", () => { app.on("ready", function () { checkInternetConnected() - .then((result) => { + .then(() => { console.log("You are connected to the internet!"); }) - .catch((ex) => { + .catch(() => { const options = { type: "warning", - buttons: ["Ok"], + buttons: ["Ok"], defaultId: 2, title: "Warning", message: "You appear to be offline!", @@ -592,7 +591,7 @@ app.on("ready", function () { autoUpdater.checkForUpdatesAndNotify(); rpc .login({ clientId }) - .catch((err) => + .catch(() => console.error( "Oops! An Error occured while connecting to Discord RPC. Probably discord isn't installed or opened?" )