Skip to content

Commit 536218c

Browse files
committed
Add null conditional operator
1 parent 266896b commit 536218c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Models/OpenApiSchema.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ public OpenApiSchema(OpenApiSchema schema)
339339
V31ExclusiveMaximum = schema?.V31ExclusiveMaximum ?? V31ExclusiveMaximum;
340340
V31ExclusiveMinimum = schema?.V31ExclusiveMinimum ?? V31ExclusiveMinimum;
341341
Type = schema?.Type ?? Type;
342-
TypeArray = schema.TypeArray != null ? new string[schema.TypeArray.Length] : null;
342+
TypeArray = schema?.TypeArray != null ? new string[schema.TypeArray.Length] : null;
343343
Format = schema?.Format ?? Format;
344344
Description = schema?.Description ?? Description;
345345
Maximum = schema?.Maximum ?? Maximum;

0 commit comments

Comments
 (0)