From 439bdb649668499b7d9745b70208643b04601032 Mon Sep 17 00:00:00 2001 From: Kiran Niranjan Date: Tue, 17 Oct 2023 14:16:55 +0530 Subject: [PATCH] SDA-4372 - Always retrieve latest registry channel (#1982) --- src/app/auto-update-handler.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/app/auto-update-handler.ts b/src/app/auto-update-handler.ts index cbfedaef..fd97c49a 100644 --- a/src/app/auto-update-handler.ts +++ b/src/app/auto-update-handler.ts @@ -35,7 +35,6 @@ export class AutoUpdate { private autoUpdateTrigger: AutoUpdateTrigger | undefined = undefined; private finalAutoUpdateChannel: string | undefined = undefined; private installVariant: string | undefined = undefined; - private shouldRetrieveRegistry: boolean = true; private channelConfigLocation: ChannelConfigLocation = ChannelConfigLocation.LOCALFILE; @@ -248,10 +247,7 @@ export class AutoUpdate { : autoUpdateChannel; this.installVariant = installVariant; if (isWindowsOS) { - if (this.shouldRetrieveRegistry) { - await retrieveWindowsRegistry(); - this.shouldRetrieveRegistry = false; - } + await retrieveWindowsRegistry(); const registryAutoUpdate = RegistryStore.getRegistry(); const identifiedChannelFromRegistry = [ EChannelRegistry.BETA,