Skip to content

Commit 99ce539

Browse files
committed
refactor: cleanup
1 parent b8da15e commit 99ce539

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

QueryKit/FilterParser.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,6 @@ private static Expression CreateRightExprFromType(Type leftExprType, string righ
318318
}
319319

320320
if (right.StartsWith("[") && right.EndsWith("]"))
321-
322321
{
323322
var values = right.Trim('[', ']').Split(',').Select(x => x.Trim()).ToList();
324323
var elementType = targetType.IsArray ? targetType.GetElementType() : targetType;
@@ -332,15 +331,14 @@ private static Expression CreateRightExprFromType(Type leftExprType, string righ
332331

333332
var enumValue = Enum.Parse(enumType, x);
334333
var constant = Expression.Constant(enumValue, enumType);
335-
334+
336335
return constant;
337336
}).ToArray();
338337

339338
var newArrayExpression = Expression.NewArrayInit(enumType, expressions);
340339
return newArrayExpression;
341340
}
342341

343-
// var enumValue = Enum.Parse(enumType, right);
344342
var parsed = Enum.TryParse(enumType, right, out var enumValue);
345343
if (!parsed)
346344
{

0 commit comments

Comments
 (0)