Skip to content

Commit

Permalink
rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
zglicz committed Mar 20, 2024
1 parent 0d87f33 commit 6542c7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jsts/src/rules/helpers/ast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,14 +430,14 @@ export function getPropertyWithValue(

function getPropertyFromSpreadElement(
spreadElement: estree.SpreadElement,
propertyName: string,
key: string,
ctx: Rule.RuleContext,
): estree.Property | null | undefined {
const props = getValueOfExpression(ctx, spreadElement.argument, 'ObjectExpression');
if (props === undefined) {
return undefined;
}
return getProperty(props, propertyName, ctx);
return getProperty(props, key, ctx);
}

/**
Expand Down

0 comments on commit 6542c7d

Please sign in to comment.