Skip to content

Commit

Permalink
small fix (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyuanliang-ms authored Nov 6, 2024
1 parent e7119e2 commit 8fe0efd
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/featureManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class FeatureManager {

// If multiple feature flags are found, the first one takes precedence.
async isEnabled(featureName: string, context?: unknown): Promise<boolean> {
const featureFlag = await this.#getFeatureFlag(featureName);
const featureFlag = await this.#provider.getFeatureFlag(featureName);
if (featureFlag === undefined) {
// If the feature is not found, then it is disabled.
return false;
Expand Down Expand Up @@ -71,12 +71,6 @@ export class FeatureManager {
// If we get here, then we have not found a client filter that matches the requirement type.
return !shortCircuitEvaluationResult;
}

async #getFeatureFlag(featureName: string): Promise<any> {
const featureFlag = await this.#provider.getFeatureFlag(featureName);
return featureFlag;
}

}

interface FeatureManagerOptions {
Expand Down

0 comments on commit 8fe0efd

Please sign in to comment.