Skip to content

Commit 45edb76

Browse files
Update src/Microsoft.OpenApi.Readers/V31/JsonSchemaDeserializer.cs
Co-authored-by: Vincent Biret <[email protected]>
1 parent 2b21a91 commit 45edb76

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Microsoft.OpenApi.Readers/V31/JsonSchemaDeserializer.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ public static JsonSchema LoadSchema(ParseNode node)
2222
var builder = new JsonSchemaBuilder();
2323

2424
// check for a $ref and if present, add it to the builder as a Ref keyword
25-
var pointer = mapNode.GetReferencePointer();
26-
if (pointer != null)
25+
if (mapNode.GetReferencePointer() is {} pointer)
2726
{
2827
builder = builder.Ref(pointer);
2928

0 commit comments

Comments
 (0)