From 270518a7eb055085c53562f127a4070faa8e4203 Mon Sep 17 00:00:00 2001 From: Enis Necipoglu Date: Sat, 7 Oct 2023 22:47:56 +0300 Subject: [PATCH] CodeFactor feedbacks --- src/AutoFilterer/Attributes/ArraySearchFilterAttribute.cs | 4 ---- src/AutoFilterer/Attributes/CompareToAttribute.cs | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/AutoFilterer/Attributes/ArraySearchFilterAttribute.cs b/src/AutoFilterer/Attributes/ArraySearchFilterAttribute.cs index 8f8588f..b8adc4b 100644 --- a/src/AutoFilterer/Attributes/ArraySearchFilterAttribute.cs +++ b/src/AutoFilterer/Attributes/ArraySearchFilterAttribute.cs @@ -27,10 +27,6 @@ public override Expression BuildExpression(ExpressionBuildContext context) Expression.Property(context.ExpressionBody, context.TargetProperty) }); - - - // x => filter.Status.Contains(x.Status) - return containsExpression; } } diff --git a/src/AutoFilterer/Attributes/CompareToAttribute.cs b/src/AutoFilterer/Attributes/CompareToAttribute.cs index 71ff4f2..b3deadf 100644 --- a/src/AutoFilterer/Attributes/CompareToAttribute.cs +++ b/src/AutoFilterer/Attributes/CompareToAttribute.cs @@ -7,7 +7,6 @@ using System.Linq.Expressions; using System.Reflection; using System; -using AutoFilterer.Types; namespace AutoFilterer.Attributes; @@ -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) @@ -116,8 +114,6 @@ public virtual Expression BuildDefaultExpression(ExpressionBuildContext context) } } - - if (context.FilterObjectPropertyValue is IFilterableType filterableProperty) { return filterableProperty.BuildExpression(context);