mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-24 09:50:51 -06:00
SDA-4489 - Fix wrong import (#2129)
This commit is contained in:
parent
68194f4a4c
commit
6e82aca630
@ -251,4 +251,4 @@
|
||||
"pre-commit": "pretty-quick --staged && npm run lint"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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';
|
||||
@ -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();
|
||||
@ -276,6 +275,7 @@ export class AutoUpdate {
|
||||
url,
|
||||
error,
|
||||
);
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user