Skip to content

Commit

Permalink
proper naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Newbie012 committed Jan 4, 2025
1 parent d76ba75 commit b24a20e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/generate/src/ast-describe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function getDescribedAExpr({
return [];
}

const xxx = (node: LibPgQueryAST.Node) => {
const getValueAndNullable = (node: LibPgQueryAST.Node) => {
const column = getDescribedNode({ alias: undefined, node, context }).at(0);

if (column === undefined) return null;
Expand Down Expand Up @@ -254,8 +254,8 @@ function getDescribedAExpr({
return null;
}

const lnode = xxx(node.lexpr)
const rnode = xxx(node.rexpr)
const lnode = getValueAndNullable(node.lexpr)
const rnode = getValueAndNullable(node.rexpr)

if (lnode === null || rnode === null || lnode.value !== rnode.value) {
return [];
Expand Down

0 comments on commit b24a20e

Please sign in to comment.