SDA-4372 - Always retrieve latest registry channel (#1982)

This commit is contained in:
Kiran Niranjan 2023-10-17 14:16:55 +05:30 committed by GitHub
parent 3ecb3da1f0
commit 439bdb6496
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
const registryAutoUpdate = RegistryStore.getRegistry();
const identifiedChannelFromRegistry = [
EChannelRegistry.BETA,