Skip to content

Commit 5cedb62

Browse files
committed
Removed evaluation assignment.
Signed-off-by: André Silva <[email protected]>
1 parent 7b9ea13 commit 5cedb62

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/OpenFeature/OpenFeatureClient.cs

-2
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,10 @@ private async Task<FlagEvaluationDetails<T>> EvaluateFlagAsync<T>(
252252
// short circuit evaluation entirely if provider is in a bad state
253253
if (provider.Status == ProviderStatus.NotReady)
254254
{
255-
evaluation = new FlagEvaluationDetails<T>(flagKey, defaultValue, ErrorType.ProviderNotReady, Reason.Error, string.Empty, "Provider has not yet completed initialization.");
256255
throw new ProviderNotReadyException("Provider has not yet completed initialization.");
257256
}
258257
else if (provider.Status == ProviderStatus.Fatal)
259258
{
260-
evaluation = new FlagEvaluationDetails<T>(flagKey, defaultValue, ErrorType.ProviderFatal, Reason.Error, string.Empty, string.Empty);
261259
throw new ProviderFatalException("Provider is in an irrecoverable error state.");
262260
}
263261

0 commit comments

Comments
 (0)