Skip to content

Commit

Permalink
SDA-4489 - Fix wrong import
Browse files Browse the repository at this point in the history
  • Loading branch information
KiranNiranjan committed Apr 12, 2024
1 parent 33c42c7 commit 6fdfcf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -251,4 +251,4 @@
"pre-commit": "pretty-quick --staged && npm run lint"
}
}
}
}
4 changes: 2 additions & 2 deletions src/app/auto-update-handler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { GenericServerOptions } from 'builder-util-runtime';
import fetch from 'electron-fetch';
import electronLog from 'electron-log';
import { MacUpdater, NsisUpdater } from 'electron-updater';
import * as fs from 'fs';
Expand Down Expand Up @@ -252,7 +251,7 @@ export class AutoUpdate {
return;
};

private fetchLatestVersion = async (): Promise<string> => {
private fetchLatestVersion = async (): Promise<string | void> => {
await this.setAutoUpdateChannel();
return new Promise((resolve) => {
const url = this.getUpdateUrl();
Expand All @@ -276,6 +275,7 @@ export class AutoUpdate {
url,
error,
);
resolve();
});
});
};
Expand Down

0 comments on commit 6fdfcf9

Please sign in to comment.