Skip to content

Commit

Permalink
Remove unused args
Browse files Browse the repository at this point in the history
  • Loading branch information
qn895 committed Oct 16, 2024
1 parent 64fb7db commit c0c8196
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,7 @@ function addVariableFromAssignment(
function addVariableFromExpression(
expressionOperation: ESQLFunction,
queryString: string,
variables: Map<string, ESQLVariable[]>,
ast: ESQLAst,
fields: Map<string, ESQLRealField>
variables: Map<string, ESQLVariable[]>
) {
if (!expressionOperation.text.includes(EDITOR_MARKER)) {
const expressionText = queryString.substring(
Expand Down Expand Up @@ -185,7 +183,7 @@ export function collectVariables(
if (ctx.node.name === '=') {
addVariableFromAssignment(ctx.node, variables, fields);
} else {
addVariableFromExpression(ctx.node, queryString, variables, ast, fields);
addVariableFromExpression(ctx.node, queryString, variables);
}
})
.on('visitCommandOption', (ctx) => {
Expand Down

0 comments on commit c0c8196

Please sign in to comment.