Skip to content

Commit

Permalink
Update src/OpenFeature/Model/EvaluationContextBuilder.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Austin Drenski <[email protected]>
Signed-off-by: Roelof Blom <[email protected]>
  • Loading branch information
roelofb and austindrenski authored Feb 7, 2024
1 parent 2ccb3be commit f2f36a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenFeature/Model/EvaluationContextBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public EvaluationContextBuilder Merge(EvaluationContext context)
newTargetingKey = TargetingKey;
}

if (context.TargetingKey != null && context.TargetingKey.Trim() != string.Empty)
if (!string.IsNullOrWhitespace(context.TargetingKey))
{
newTargetingKey = context.TargetingKey;
}
Expand Down

0 comments on commit f2f36a6

Please sign in to comment.