Skip to content

Commit 121bb48

Browse files
committed
chore: formatting
1 parent a5023d6 commit 121bb48

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
@@ -635,8 +635,7 @@ private void SerializeTypeProperty(JsonSchemaType? type, IOpenApiWriter writer,
635635
var isNullable = Nullable ||
636636
Extensions is not null &&
637637
Extensions.TryGetValue(OpenApiConstants.NullableExtension, out var nullExtRawValue) &&
638-
nullExtRawValue is OpenApiAny openApiAny &&
639-
openApiAny.Node is JsonNode jsonNode &&
638+
nullExtRawValue is OpenApiAny { Node: JsonNode jsonNode} &&
640639
jsonNode.GetValueKind() is JsonValueKind.True;
641640
if (type is null)
642641
{

0 commit comments

Comments
 (0)