1
0
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:
Sebastian Malton 2022-11-24 13:01:49 -08:00
parent 12b2b1658e
commit b49ff6abfb

View File

@ -29,13 +29,15 @@ const checkForPlatformUpdatesInjectable = getInjectable({
electronUpdater.autoDownload = false;
electronUpdater.allowDowngrade = allowDowngrade;
let result: UpdateCheckResult;
let result: UpdateCheckResult | null = null;
try {
result = await electronUpdater.checkForUpdates();
} catch (error) {
logger.error("[UPDATE-APP/CHECK-FOR-UPDATES]", error);
}
if (!result) {
return {
updateWasDiscovered: false,
};