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 f2f36a6 commit 3fb5a44
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 @@ -150,7 +150,7 @@ public EvaluationContextBuilder Merge(EvaluationContext context)
newTargetingKey = context.TargetingKey;
}

if (newTargetingKey != null && newTargetingKey.Trim() != string.Empty)
if (!string.IsNullOrWhitespace(newTargetingKey))

Check failure on line 153 in src/OpenFeature/Model/EvaluationContextBuilder.cs

View workflow job for this annotation

GitHub Actions / e2e-tests

'string' does not contain a definition for 'IsNullOrWhitespace'

Check failure on line 153 in src/OpenFeature/Model/EvaluationContextBuilder.cs

View workflow job for this annotation

GitHub Actions / e2e-tests

'string' does not contain a definition for 'IsNullOrWhitespace'

Check failure on line 153 in src/OpenFeature/Model/EvaluationContextBuilder.cs

View workflow job for this annotation

GitHub Actions / e2e-tests

'string' does not contain a definition for 'IsNullOrWhitespace'

Check failure on line 153 in src/OpenFeature/Model/EvaluationContextBuilder.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

'string' does not contain a definition for 'IsNullOrWhitespace'

Check failure on line 153 in src/OpenFeature/Model/EvaluationContextBuilder.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

'string' does not contain a definition for 'IsNullOrWhitespace'

Check failure on line 153 in src/OpenFeature/Model/EvaluationContextBuilder.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

'string' does not contain a definition for 'IsNullOrWhitespace'
{
this.TargetingKey = newTargetingKey;
}
Expand Down

0 comments on commit 3fb5a44

Please sign in to comment.