Skip to content

Commit

Permalink
[Fix]: destructuring-assignment get the contextName correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ohhoney1 committed Jul 27, 2021
1 parent d0b5196 commit fd8fba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/destructuring-assignment.js
Expand Up @@ -32,7 +32,7 @@ function createSFCParams() {
const context = params[1];
return context && !context.destructuring && context.name;
});
return found && found[1] && found.name;
return found && found[1] && found[1].name;
}
};
}
Expand Down

0 comments on commit fd8fba4

Please sign in to comment.