Skip to content

Commit

Permalink
Attemp to fix sporadically failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mafii committed Sep 17, 2024
1 parent fb2c539 commit 1f978fc
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@ private static void AddSource(SourceProductionContext context, ImmutableArray<st
{
if (code.Any())
{
const string newline = """
""";

#pragma warning disable RS1035
var newline = Environment.NewLine;
#pragma warning restore RS1035
var combinedCode = $"{GeneratedFileHeadersSource}{newline}{newline}{string.Join(newline, code)}";
context.AddSource("DiscriminatedUnionGenerator.g.cs", combinedCode);
}
Expand Down

0 comments on commit 1f978fc

Please sign in to comment.