Skip to content

Commit 174eccf

Browse files
authored
Cleanup unneeded count variable in SerializeAsync (#5616)
1 parent 34051e9 commit 174eccf

File tree

1 file changed

+0
-2
lines changed
  • src/Platform/Microsoft.Testing.Platform/ServerMode/JsonRpc/Json

1 file changed

+0
-2
lines changed

src/Platform/Microsoft.Testing.Platform/ServerMode/JsonRpc/Json/Json.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,12 +726,10 @@ private async Task SerializeAsync(object? obj, Utf8JsonWriter writer)
726726
(string Key, object? Value)[]? properties = objectConverter.Properties(obj);
727727
if (properties is not null)
728728
{
729-
int count = 1;
730729
foreach ((string property, object? value) in properties)
731730
{
732731
writer.WritePropertyName(property);
733732
await SerializeAsync(value, writer);
734-
count++;
735733
}
736734
}
737735

0 commit comments

Comments
 (0)