Merge pull request #116 from TilmannBach/master

fix: AND operator uses wrong bitwise operator instead of AndAlso expression
This commit is contained in:
Ashish Patel 2021-03-21 00:37:52 +05:30 committed by GitHub
commit 18eedf2e1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,7 +237,7 @@ namespace Sieve.Services
} }
else else
{ {
innerExpression = Expression.Or(innerExpression, expression); innerExpression = Expression.OrElse(innerExpression, expression);
} }
} }
} }
@ -261,7 +261,7 @@ namespace Sieve.Services
{ {
continue; continue;
} }
outerExpression = Expression.And(outerExpression, innerExpression); outerExpression = Expression.AndAlso(outerExpression, innerExpression);
} }
return outerExpression == null return outerExpression == null
? result ? result