Skip to content

Commit 33b40a2

Browse files
committed
chore: formatting
1 parent ec77d75 commit 33b40a2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Microsoft.OpenApi/Models/OpenApiSchema.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,8 +636,7 @@ private void SerializeTypeProperty(JsonSchemaType? type, IOpenApiWriter writer,
636636
var isNullable = Nullable ||
637637
Extensions is not null &&
638638
Extensions.TryGetValue(OpenApiConstants.NullableExtension, out var nullExtRawValue) &&
639-
nullExtRawValue is OpenApiAny openApiAny &&
640-
openApiAny.Node is JsonNode jsonNode &&
639+
nullExtRawValue is OpenApiAny { Node: JsonNode jsonNode} &&
641640
jsonNode.GetValueKind() is JsonValueKind.True;
642641
if (type is null)
643642
{

0 commit comments

Comments
 (0)