Skip to content

Commit

Permalink
rename per comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yuchenglin committed Jan 28, 2025
1 parent 17a8128 commit 8198429
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void TestDelegableExpressions_UserDfeinedFunction(string expression, stri
TestDelegableExpressions(Features.PowerFxV1, expression, isDelegable, script);
}

private void TestDelegableExpressions(Features features, string expression, bool isDelegable, string script = null)
private void TestDelegableExpressions(Features features, string expression, bool isDelegable, string udfScript = null)
{
var symbolTable = new DelegatableSymbolTable();
symbolTable.AddEntity(new AccountsEntity());
Expand All @@ -100,9 +100,9 @@ private void TestDelegableExpressions(Features features, string expression, bool
};

var engine = new Engine(config);
if (!string.IsNullOrWhiteSpace(script))
if (!string.IsNullOrWhiteSpace(udfScript))
{
engine.AddUserDefinedFunction(script, CultureInfo.InvariantCulture);
engine.AddUserDefinedFunction(udfScript, CultureInfo.InvariantCulture);
}

var result = engine.Check(expression);
Expand Down

0 comments on commit 8198429

Please sign in to comment.