Skip to content

Commit fefd211

Browse files
author
Sébastien Geiser
committed
Clean not necessary parentheses
1 parent f394119 commit fefd211

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CodingSeb.ExpressionEvaluator/ExpressionEvaluator.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,10 +2114,10 @@ protected virtual bool EvaluateVarOrFunc(string expression, Stack<object> stack,
21142114
{
21152115
stack.Push(varValueToPush);
21162116
}
2117-
else if ((Variables.TryGetValue(varFuncName, out object cusVarValueToPush)
2117+
else if (Variables.TryGetValue(varFuncName, out object cusVarValueToPush)
21182118
|| varFuncMatch.Groups["assignationOperator"].Success
2119-
|| (stack.Count == 1 && stack.Peek() is ClassOrEnumType && string.IsNullOrWhiteSpace(expression.Substring(i)))
2120-
&& (cusVarValueToPush == null || !TypesToBlock.Contains(cusVarValueToPush.GetType()))))
2119+
|| stack.Count == 1 && stack.Peek() is ClassOrEnumType && string.IsNullOrWhiteSpace(expression.Substring(i))
2120+
&& (cusVarValueToPush == null || !TypesToBlock.Contains(cusVarValueToPush.GetType())))
21212121
{
21222122
if (stack.Count == 1 && stack.Peek() is ClassOrEnumType classOrEnum)
21232123
{

0 commit comments

Comments
 (0)