Skip to content

Commit

Permalink
remove unnecessary check
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Petrusevici <[email protected]>
  • Loading branch information
Vladimir Petrusevici authored and Vladimir Petrusevici committed Oct 27, 2023
1 parent 2675125 commit 9aff8a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenFeature/Api.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void SetProvider(FeatureProvider featureProvider)
/// <param name="clientName">Name of client</param>
/// <param name="featureProvider">Implementation of <see cref="FeatureProvider"/></param>
public void SetProvider(string clientName, FeatureProvider featureProvider)
=> this.SetProvider(clientName, featureProvider == null ? (Func<FeatureProvider>)null : () => featureProvider);
=> this.SetProvider(clientName, () => featureProvider);

/// <summary>
/// Sets the feature provider
Expand Down

0 comments on commit 9aff8a7

Please sign in to comment.