Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
sungam3r authored Dec 23, 2024
1 parent a95879c commit caff6b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ private IEnumerable<PropertyInfo> GetPropertiesRecursive(Type type)
var unseenProperties = type.GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly)
.Where(p => p.CanRead && p.GetMethod.IsPublic && p.GetIndexParameters().Length == 0 && !seenNames.Contains(p.Name));


if (_options.RespectMetadataTypeAttribute)
{
var metaProp = new List<PropertyInfo>();
Expand All @@ -75,6 +74,7 @@ private IEnumerable<PropertyInfo> GetPropertiesRecursive(Type type)
unseenProperties = removedAttr;
}
}

foreach (var propertyInfo in unseenProperties)
{
seenNames.Add(propertyInfo.Name);
Expand Down

0 comments on commit caff6b1

Please sign in to comment.