Skip to content

Commit

Permalink
SDA-4372 - Always retrieve latest registry channel
Browse files Browse the repository at this point in the history
  • Loading branch information
KiranNiranjan committed Oct 17, 2023
1 parent 3253e4e commit 55ca1a8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/app/auto-update-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 55ca1a8

Please sign in to comment.