From 40950ad8c680d7f1b742da9d1d4a70a5a3e68e9c Mon Sep 17 00:00:00 2001 From: chouchouji <70570907+chouchouji@users.noreply.github.com> Date: Mon, 10 Feb 2025 06:31:51 +0000 Subject: [PATCH] refactor: optimize code --- lib/rules/no-ref-as-operand.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rules/no-ref-as-operand.js b/lib/rules/no-ref-as-operand.js index 1a0d6ac4f..f3b42eaa9 100644 --- a/lib/rules/no-ref-as-operand.js +++ b/lib/rules/no-ref-as-operand.js @@ -138,7 +138,7 @@ module.exports = { contextReferenceIds.has(emit.member.object) ) { // verify setup(props,context) {context.emit()} - emit.member.parent.arguments + node.arguments .filter((node) => node.type === 'Identifier') .forEach((node) => { reportIfRefWrapped(node)