File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export class FeatureManager {
3030
3131 // If multiple feature flags are found, the first one takes precedence.
3232 async isEnabled ( featureName : string , context ?: unknown ) : Promise < boolean > {
33- const featureFlag = await this . #getFeatureFlag( featureName ) ;
33+ const featureFlag = await this . #provider . getFeatureFlag ( featureName ) ;
3434 if ( featureFlag === undefined ) {
3535 // If the feature is not found, then it is disabled.
3636 return false ;
@@ -71,12 +71,6 @@ export class FeatureManager {
7171 // If we get here, then we have not found a client filter that matches the requirement type.
7272 return ! shortCircuitEvaluationResult ;
7373 }
74-
75- async #getFeatureFlag( featureName : string ) : Promise < any > {
76- const featureFlag = await this . #provider. getFeatureFlag ( featureName ) ;
77- return featureFlag ;
78- }
79-
8074}
8175
8276interface FeatureManagerOptions {
You can’t perform that action at this time.
0 commit comments