Skip to content

Commit 974ab34

Browse files
committed
chore: reverts unnecessary change
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
1 parent 1ad4ede commit 974ab34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Microsoft.OpenApi.Readers.Tests/YamlConverterTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,9 @@ private static JsonNode ConvertYamlStringToJsonNode(string yamlInput)
294294
private static string ConvertYamlNodeToString(YamlNode yamlNode)
295295
{
296296
using var ms = new MemoryStream();
297-
var document = new YamlStream(new YamlDocument(yamlNode));
297+
var yamlStream = new YamlStream(new YamlDocument(yamlNode));
298298
var writer = new StreamWriter(ms);
299-
document.Save(writer, isLastDocumentEndImplicit: true);
299+
yamlStream.Save(writer, isLastDocumentEndImplicit: true);
300300
writer.Flush();
301301
ms.Seek(0, SeekOrigin.Begin);
302302
var reader = new StreamReader(ms);

0 commit comments

Comments
 (0)