From 9aff8a70a62da013e883902aa1337953ea1eaad0 Mon Sep 17 00:00:00 2001 From: Vladimir Petrusevici Date: Fri, 27 Oct 2023 13:04:55 +0300 Subject: [PATCH] remove unnecessary check Signed-off-by: Vladimir Petrusevici --- src/OpenFeature/Api.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenFeature/Api.cs b/src/OpenFeature/Api.cs index 7f667cad..c4c62db2 100644 --- a/src/OpenFeature/Api.cs +++ b/src/OpenFeature/Api.cs @@ -49,7 +49,7 @@ public void SetProvider(FeatureProvider featureProvider) /// Name of client /// Implementation of public void SetProvider(string clientName, FeatureProvider featureProvider) - => this.SetProvider(clientName, featureProvider == null ? (Func)null : () => featureProvider); + => this.SetProvider(clientName, () => featureProvider); /// /// Sets the feature provider