@@ -9,7 +9,7 @@ import { IKeyValueAdapter } from "./IKeyValueAdapter";
99import { JsonKeyValueAdapter } from "./JsonKeyValueAdapter" ;
1010import { DEFAULT_REFRESH_INTERVAL_IN_MS , MIN_REFRESH_INTERVAL_IN_MS } from "./RefreshOptions" ;
1111import { Disposable } from "./common/disposable" ;
12- import {
12+ import {
1313 FEATURE_FLAGS_KEY_NAME ,
1414 FEATURE_MANAGEMENT_KEY_NAME ,
1515 NAME_KEY_NAME ,
@@ -21,7 +21,6 @@ import {
2121 FEATURE_FLAG_REFERENCE_KEY_NAME ,
2222 ALLOCATION_KEY_NAME ,
2323 DEFAULT_WHEN_ENABLED_KEY_NAME ,
24- DEFAULT_WHEN_DISABLED_KEY_NAME ,
2524 PERCENTILE_KEY_NAME ,
2625 FROM_KEY_NAME ,
2726 TO_KEY_NAME ,
@@ -650,15 +649,15 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
650649 rawAllocationId += `${ featureFlag [ ALLOCATION_KEY_NAME ] [ DEFAULT_WHEN_ENABLED_KEY_NAME ] } ` ;
651650 }
652651
653- rawAllocationId += ` \npercentiles=` ;
652+ rawAllocationId += " \npercentiles=" ;
654653
655654 const percentileList = featureFlag [ ALLOCATION_KEY_NAME ] [ PERCENTILE_KEY_NAME ] ;
656655 if ( percentileList ) {
657656 const sortedPercentileList = percentileList
658- . filter ( p =>
659- ( p [ FROM_KEY_NAME ] !== undefined ) &&
660- ( p [ TO_KEY_NAME ] !== undefined ) &&
661- ( p [ VARIANT_KEY_NAME ] !== undefined ) &&
657+ . filter ( p =>
658+ ( p [ FROM_KEY_NAME ] !== undefined ) &&
659+ ( p [ TO_KEY_NAME ] !== undefined ) &&
660+ ( p [ VARIANT_KEY_NAME ] !== undefined ) &&
662661 ( p [ FROM_KEY_NAME ] !== p [ TO_KEY_NAME ] ) )
663662 . sort ( ( a , b ) => a [ FROM_KEY_NAME ] - b [ FROM_KEY_NAME ] ) ;
664663
@@ -670,9 +669,9 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
670669 rawAllocationId += percentileAllocation . join ( ";" ) ;
671670 }
672671 }
673-
672+
674673 if ( variantsForExperiementation . length === 0 && featureFlag [ ALLOCATION_KEY_NAME ] [ SEED_KEY_NAME ] === undefined ) {
675- // All fields required for generating allocation id are missing, short-circuit and return empty string
674+ // All fields required for generating allocation id are missing, short-circuit and return empty string
676675 return "" ;
677676 }
678677
@@ -682,15 +681,15 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
682681 const variantsList = featureFlag [ VARIANTS_KEY_NAME ] ;
683682 if ( variantsList ) {
684683 const sortedVariantsList = variantsList
685- . filter ( v =>
686- ( v [ NAME_KEY_NAME ] !== undefined ) &&
684+ . filter ( v =>
685+ ( v [ NAME_KEY_NAME ] !== undefined ) &&
687686 variantsForExperiementation . includes ( v [ NAME_KEY_NAME ] ) )
688687 . sort ( ( a , b ) => ( a . name > b . name ? 1 : - 1 ) ) ;
689-
688+
690689 const variantConfiguration : string [ ] = [ ] ;
691690 for ( const variant of sortedVariantsList ) {
692691 const configurationValue = JSON . stringify ( variant [ CONFIGURATION_VALUE_KEY_NAME ] , null , 0 ) ?? "" ;
693- variantConfiguration . push ( `${ base64Helper ( variant [ NAME_KEY_NAME ] ) } ,${ configurationValue } ` )
692+ variantConfiguration . push ( `${ base64Helper ( variant [ NAME_KEY_NAME ] ) } ,${ configurationValue } ` ) ;
694693 }
695694 rawAllocationId += variantConfiguration . join ( ";" ) ;
696695 }
0 commit comments