Skip to content

Commit b448384

Browse files
committed
chore: linting
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
1 parent 9f2bdc2 commit b448384

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,8 @@ public void ToYamlNode_StringWithLineBreaks_PreservesLineBreaks()
209209

210210
// Convert back to JSON to verify round-tripping
211211
var yamlStream = new YamlStream();
212-
using (var sr = new System.IO.StringReader(yamlOutput))
213-
{
214-
yamlStream.Load(sr);
215-
}
212+
using var sr = new StringReader(yamlOutput);
213+
yamlStream.Load(sr);
216214
var jsonBack = yamlStream.Documents[0].ToJsonNode();
217215

218216
// Assert - line breaks should be preserved during round-trip

0 commit comments

Comments
 (0)