Skip to content

Commit 2b2996e

Browse files
committed
if
1 parent 583397a commit 2b2996e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/System.Linq.Dynamic.Core/Parser/ExpressionParser.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -998,8 +998,7 @@ private Expression ParseIdentifier()
998998
{
999999
var keywordOrFunctionAllowed =
10001000
!_usedForOrderBy ||
1001-
(_usedForOrderBy && _keywordsHelper.IsItOrRootOrParent(keywordOrType)) ||
1002-
(_usedForOrderBy && !_parsingConfig.RestrictOrderByToPropertyOrField);
1001+
(_usedForOrderBy && (_keywordsHelper.IsItOrRootOrParent(keywordOrType) || !_parsingConfig.RestrictOrderByToPropertyOrField));
10031002
if (!keywordOrFunctionAllowed)
10041003
{
10051004
throw ParseError(Res.UnknownPropertyOrField, _textParser.CurrentToken.Text, TypeHelper.GetTypeName(_it?.Type));

0 commit comments

Comments
 (0)