Skip to content

Commit 8b73da5

Browse files
temonkCopilot
andauthored
Update src/AltaSoft.DomainPrimitives.Generator/Helpers/MethodGeneratorHelper.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 54a13a5 commit 8b73da5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/AltaSoft.DomainPrimitives.Generator/Helpers/MethodGeneratorHelper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -823,9 +823,9 @@ public static void GenerateParsable(GeneratorData data, SourceCodeBuilder builde
823823
style = data.UnderlyingType == DomainPrimitiveUnderlyingType.TimeSpan ? "TimeSpanStyles.None" : "DateTimeStyles.None";
824824
}
825825

826-
builder.AppendIf(format is null, $"if (!{underlyingType}.TryParse(s, provider, out var value))")
827-
.AppendIf(format is not null, $"if (!{underlyingType}.TryParseExact(s, {QuoteAndEscape(format)}, provider, {style}, out var value))");
828-
}
826+
builder.AppendIf(format is null, $"if (!{underlyingType}.TryParse(s, provider, out var value))")
827+
.AppendIf(format is not null, $"if (!{underlyingType}.TryParseExact(s, {QuoteAndEscape(format)}, provider, {style}, out var value))");
828+
}
829829

830830
builder.OpenBracket()
831831
.AppendLine("result = default;")

0 commit comments

Comments
 (0)