From 6542c7d8e7c530f8d81f9358b2a1b5e875916afc Mon Sep 17 00:00:00 2001 From: Michal Zgliczynski Date: Wed, 20 Mar 2024 14:44:35 +0100 Subject: [PATCH] rename variable --- packages/jsts/src/rules/helpers/ast.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/jsts/src/rules/helpers/ast.ts b/packages/jsts/src/rules/helpers/ast.ts index f9efb02fe15..73bb5665d46 100644 --- a/packages/jsts/src/rules/helpers/ast.ts +++ b/packages/jsts/src/rules/helpers/ast.ts @@ -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); } /**