Skip to content

Commit

Permalink
Removed debugging vars
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffCoxMSFT committed Nov 4, 2020
1 parent 710c86b commit 44953dd
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Composer/packages/server/src/services/featureFlags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@ export class FeatureFlagService {
let saveNeeded = false;

// add any new keys defined in the defaults that aren't in current
const keysToAdd = defaultFeatureFlagKeys.filter((key: string) => !currentFeatureFlagKeys.includes(key));

keysToAdd.forEach((key: string) => {
FeatureFlagService.currentFeatureFlagMap[key] = FeatureFlagService.defaultFeatureFlags[key];
saveNeeded = true;
});
defaultFeatureFlagKeys
.filter((key: string) => !currentFeatureFlagKeys.includes(key))
.forEach((key: string) => {
FeatureFlagService.currentFeatureFlagMap[key] = FeatureFlagService.defaultFeatureFlags[key];
saveNeeded = true;
});

// remove any keys no longer in default that are in current
const keysToRemove = currentFeatureFlagKeys.filter((key: string) => !defaultFeatureFlagKeys.includes(key));

keysToRemove.forEach((key: string) => {
delete FeatureFlagService.currentFeatureFlagMap[key];
saveNeeded = true;
});
currentFeatureFlagKeys
.filter((key: string) => !defaultFeatureFlagKeys.includes(key))
.forEach((key: string) => {
delete FeatureFlagService.currentFeatureFlagMap[key];
saveNeeded = true;
});

// set any hidden feature flags from the process
// process should override value for hidden features flags
Expand Down

0 comments on commit 44953dd

Please sign in to comment.