Skip to content

Commit

Permalink
incorrect check for fix newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Apr 3, 2024
1 parent 207a10b commit 9822b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Verify/IoHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public static async Task<StringBuilder> ReadStringBuilderWithFixedLines(this Str
using var reader = new StreamReader(stream);
var contents = await reader.ReadToEndAsync();
var builder = new StringBuilder(contents);
if (contents.Contains('\n'))
if (contents.Contains('\r'))
{
builder.FixNewlines();
}
Expand Down

0 comments on commit 9822b80

Please sign in to comment.