We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdb5264 commit 339f61fCopy full SHA for 339f61f
src/Microsoft.OpenApi/Reader/ParseNodes/MapNode.cs
@@ -21,9 +21,7 @@ internal class MapNode : ParseNode, IEnumerable<PropertyNode>
21
22
private PropertyNode GetPropertyNodeFromJsonNode(string key, JsonNode? node)
23
{
24
- return node is null ?
25
- new PropertyNode(Context, key, JsonNullSentinel.JsonNull) :
26
- new PropertyNode(Context, key, node);
+ return new PropertyNode(Context, key, node ?? JsonNullSentinel.JsonNull);
27
}
28
29
public MapNode(ParsingContext context, JsonNode node) : base(
0 commit comments