Skip to content

Commit

Permalink
avoid null coalescing
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Miller committed Sep 29, 2024
1 parent be64a24 commit e120a07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Maui.DataGrid/Extensions/ReflectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ internal static class ReflectionExtensions
{
var property = resultType.GetProperty(token, BindingFlags.Public | BindingFlags.Instance);

resultType = property?.PropertyType;

if (resultType == null)
if (property == null)
{
return null;
}

resultType = property.PropertyType;
}

return resultType;
Expand Down

0 comments on commit e120a07

Please sign in to comment.