Skip to content

Commit

Permalink
CodeFactor feedbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
enisn committed Oct 7, 2023
1 parent 6e098f3 commit 270518a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/AutoFilterer/Attributes/ArraySearchFilterAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ public override Expression BuildExpression(ExpressionBuildContext context)
Expression.Property(context.ExpressionBody, context.TargetProperty)
});



// x => filter.Status.Contains(x.Status)

return containsExpression;
}
}
4 changes: 0 additions & 4 deletions src/AutoFilterer/Attributes/CompareToAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using System.Linq.Expressions;
using System.Reflection;
using System;
using AutoFilterer.Types;

namespace AutoFilterer.Attributes;

Expand Down Expand Up @@ -99,7 +98,6 @@ public virtual Expression BuildExpressionForProperty(ExpressionBuildContext cont
return BuildDefaultExpression(context);
}

//public virtual Expression BuildDefaultExpression(Expression expressionBody, PropertyInfo targetProperty, PropertyInfo filterProperty, MemberExpression filterPropertyExpression)
public virtual Expression BuildDefaultExpression(ExpressionBuildContext context)
{
if (context.FilterObjectPropertyValue is IFilter filter)
Expand All @@ -116,8 +114,6 @@ public virtual Expression BuildDefaultExpression(ExpressionBuildContext context)
}
}



if (context.FilterObjectPropertyValue is IFilterableType filterableProperty)
{
return filterableProperty.BuildExpression(context);
Expand Down

0 comments on commit 270518a

Please sign in to comment.