Skip to content

Commit

Permalink
feat: remove unneeded async
Browse files Browse the repository at this point in the history
  • Loading branch information
zamitto committed Jan 11, 2025
1 parent ce223a4 commit 6698d2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/services/update-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class UpdateManager {
WindowManager.mainWindow?.webContents.send("autoUpdaterEvent", event);
}

public static async checkForUpdates() {
public static checkForUpdates() {
autoUpdater
.once("update-available", (info: UpdateInfo) => {
this.sendEvent({ type: "update-available", info });
Expand All @@ -51,7 +51,7 @@ export class UpdateManager {
return isAutoInstallAvailable;
}

public static async checkForUpdatePeriodically() {
public static checkForUpdatePeriodically() {
if (this.checkTick % 2000 == 0) {
this.checkForUpdates();
}
Expand Down

0 comments on commit 6698d2f

Please sign in to comment.