From 5cedb628a7b8ac6608801bc13aef18a532dd7c9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= <2493377+askpt@users.noreply.github.com> Date: Fri, 20 Dec 2024 13:58:00 +0000 Subject: [PATCH] Removed evaluation assignment. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com> --- src/OpenFeature/OpenFeatureClient.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/OpenFeature/OpenFeatureClient.cs b/src/OpenFeature/OpenFeatureClient.cs index 0f1f51d3..787c89ee 100644 --- a/src/OpenFeature/OpenFeatureClient.cs +++ b/src/OpenFeature/OpenFeatureClient.cs @@ -252,12 +252,10 @@ private async Task> EvaluateFlagAsync( // short circuit evaluation entirely if provider is in a bad state if (provider.Status == ProviderStatus.NotReady) { - evaluation = new FlagEvaluationDetails(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(flagKey, defaultValue, ErrorType.ProviderFatal, Reason.Error, string.Empty, string.Empty); throw new ProviderFatalException("Provider is in an irrecoverable error state."); }