diff --git a/src/Microsoft.OpenApi.Readers/ParseNodes/PropertyNode.cs b/src/Microsoft.OpenApi.Readers/ParseNodes/PropertyNode.cs index 2dd2c7e8a..c9ff8147a 100644 --- a/src/Microsoft.OpenApi.Readers/ParseNodes/PropertyNode.cs +++ b/src/Microsoft.OpenApi.Readers/ParseNodes/PropertyNode.cs @@ -31,9 +31,7 @@ public void ParseField( IDictionary, Action> patternFields) { Action fixedFieldMap; - var found = fixedFields.TryGetValue(Name, out fixedFieldMap); - - if (fixedFieldMap != null) + if (fixedFields.TryGetValue(Name, out fixedFieldMap)) { try {