Skip to content

Commit 199b887

Browse files
committed
chore: refactoring
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
1 parent dbbbf13 commit 199b887

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.OpenApi/Reader/ParseNodes/MapNode.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ public PropertyNode? this[string key]
4141
{
4242
get
4343
{
44-
if (_node.ContainsKey(key))
44+
if (_nodes.TryGetValue(key, out var value))
4545
{
46-
return _nodes[key];
46+
return value;
4747
}
4848

4949
return null;

0 commit comments

Comments
 (0)