diff --git a/src/bgen/Generator.cs b/src/bgen/Generator.cs index 8992a5403312..b0d1548fa5dc 100644 --- a/src/bgen/Generator.cs +++ b/src/bgen/Generator.cs @@ -3451,14 +3451,14 @@ void GenerateTypeLowering (MethodInfo mi, bool null_allowed_override, out String var nullable = TypeManager.GetUnderlyingNullableType (et); if (nullable is not null) { var nt = FormatType (mi.DeclaringType, nullable); - convs.AppendFormat ( $"{nt}* converted_{safe_name} = null;\n"); + convs.AppendFormat ($"{nt}* converted_{safe_name} = null;\n"); convs.AppendFormat ($"{nt} converted_{safe_name}_v = default ({nt});\n"); convs.AppendFormat ($"if ({safe_name}.HasValue) {{\n"); convs.AppendFormat ($"\tconverted_{safe_name}_v = {safe_name}.Value;\n"); convs.AppendFormat ($"\tconverted_{safe_name} = &converted_{safe_name}_v;\n"); convs.AppendFormat ("}\n"); - by_ref_processing.AppendFormat ($"if ({safe_name}.HasValue)").AppendLine(); - by_ref_processing.AppendFormat ($"\t{safe_name} = *converted_{safe_name};").AppendLine(); + by_ref_processing.AppendFormat ($"if ({safe_name}.HasValue)").AppendLine (); + by_ref_processing.AppendFormat ($"\t{safe_name} = *converted_{safe_name};").AppendLine (); } } }