Skip to content

Commit cb8b7a6

Browse files
committed
Update PropertyCache.cs
1 parent 64fb10a commit cb8b7a6

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

src/GraphQL.EntityFramework/PropertyAccess/PropertyCache.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static Expression AggregatePath(string path, Expression parameter)
5353
/// </summary>
5454
/// <param name="type">Type to retrieve property from</param>
5555
/// <param name="propertyOrFieldName">Name of property or field</param>
56-
static MemberInfo? GetPropertyOrField(Type type, string propertyOrFieldName)
56+
static MemberInfo GetPropertyOrField(Type type, string propertyOrFieldName)
5757
{
5858
// Member search binding flags
5959
const BindingFlags bindingFlagsPublic = BindingFlags.Instance | BindingFlags.Public | BindingFlags.IgnoreCase | BindingFlags.FlattenHierarchy;
@@ -82,12 +82,8 @@ static Expression AggregatePath(string path, Expression parameter)
8282
// Recurse looking in the parent interface for the property
8383
propertyOrField = GetPropertyOrField(baseInterfaceType, propertyOrFieldName);
8484

85-
// If property found
86-
if (propertyOrField is not null)
87-
{
88-
// Break execution
89-
break;
90-
}
85+
// property found
86+
break;
9187
}
9288
}
9389

0 commit comments

Comments
 (0)