Skip to content

Commit

Permalink
Removed evaluation assignment.
Browse files Browse the repository at this point in the history
Signed-off-by: André Silva <[email protected]>
  • Loading branch information
askpt committed Dec 20, 2024
1 parent 7b9ea13 commit 5cedb62
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/OpenFeature/OpenFeatureClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,10 @@ private async Task<FlagEvaluationDetails<T>> EvaluateFlagAsync<T>(
// short circuit evaluation entirely if provider is in a bad state
if (provider.Status == ProviderStatus.NotReady)
{
evaluation = new FlagEvaluationDetails<T>(flagKey, defaultValue, ErrorType.ProviderNotReady, Reason.Error, string.Empty, "Provider has not yet completed initialization.");
throw new ProviderNotReadyException("Provider has not yet completed initialization.");
}
else if (provider.Status == ProviderStatus.Fatal)
{
evaluation = new FlagEvaluationDetails<T>(flagKey, defaultValue, ErrorType.ProviderFatal, Reason.Error, string.Empty, string.Empty);
throw new ProviderFatalException("Provider is in an irrecoverable error state.");
}

Expand Down

0 comments on commit 5cedb62

Please sign in to comment.