mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix type error
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
12b2b1658e
commit
b49ff6abfb
@ -29,13 +29,15 @@ const checkForPlatformUpdatesInjectable = getInjectable({
|
|||||||
electronUpdater.autoDownload = false;
|
electronUpdater.autoDownload = false;
|
||||||
electronUpdater.allowDowngrade = allowDowngrade;
|
electronUpdater.allowDowngrade = allowDowngrade;
|
||||||
|
|
||||||
let result: UpdateCheckResult;
|
let result: UpdateCheckResult | null = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
result = await electronUpdater.checkForUpdates();
|
result = await electronUpdater.checkForUpdates();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error("[UPDATE-APP/CHECK-FOR-UPDATES]", error);
|
logger.error("[UPDATE-APP/CHECK-FOR-UPDATES]", error);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!result) {
|
||||||
return {
|
return {
|
||||||
updateWasDiscovered: false,
|
updateWasDiscovered: false,
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user