Skip to content

Commit

Permalink
Don't enumerate JsonPathSanitizers twice
Browse files Browse the repository at this point in the history
  • Loading branch information
heaths committed Mar 2, 2022
1 parent 9286da6 commit a18e710
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions sdk/core/Azure.Core.TestFramework/src/TestRecording.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,6 @@ await _proxy.Client.AddHeaderSanitizerAsync(
RecordingId);
}

foreach (string jsonPath in _recordedTestBase.JsonPathSanitizers)
{
await _proxy.Client.AddBodyKeySanitizerAsync(new BodyKeySanitizer(Sanitized) { JsonPath = jsonPath }, RecordingId);
}

foreach (UriRegexSanitizer sanitizer in _recordedTestBase.UriRegexSanitizers)
{
await _proxy.Client.AddUriSanitizerAsync(sanitizer, RecordingId);
Expand Down

0 comments on commit a18e710

Please sign in to comment.