Skip to content

Commit

Permalink
SDA-4290 - Update check to validate object length (finos#1979)
Browse files Browse the repository at this point in the history
  • Loading branch information
KiranNiranjan authored Oct 12, 2023
1 parent ee9e810 commit 3253e4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/auto-update-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { isUrl } from '../common/utils';
import { whitelistHandler } from '../common/whitelist-handler';
import { sendAutoUpdateAnalytics } from './bi/auto-update-analytics';
import { InstallActionTypes, InstallTypes } from './bi/interface';
import { config } from './config-handler';
import { config, IConfig } from './config-handler';
import { retrieveWindowsRegistry } from './registry-handler';
import { EChannelRegistry, RegistryStore } from './stores/registry-store';
import { windowHandler } from './window-handler';
Expand Down Expand Up @@ -237,9 +237,9 @@ export class AutoUpdate {

const cc = config.getFilteredCloudConfigFields([
'betaAutoUpdateChannelEnabled',
]);
]) as IConfig;
this.channelConfigLocation =
'betaAutoUpdateChannelEnabled' in cc && cc.betaAutoUpdateChannelEnabled
Object.keys(cc).length === 0 || cc.betaAutoUpdateChannelEnabled
? ChannelConfigLocation.ACP
: ChannelConfigLocation.LOCALFILE;

Expand Down

0 comments on commit 3253e4e

Please sign in to comment.