Skip to content

Commit

Permalink
fixup! refactor(eslint-plugin): avoid looking for nodes that do not m…
Browse files Browse the repository at this point in the history
…atch the provided options
  • Loading branch information
rafaelss95 committed Oct 12, 2021
1 parent d7c2e70 commit 499e847
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -57,7 +57,7 @@ export default util.createRule<Options, MessageIds>({
create(context, [style]) {
return {
...(style === 'fields' && {
MethodDefinition(node: TSESTree.MethodDefinition): void {
MethodDefinition(node): void {
if (
node.kind !== 'get' ||
!node.value.body ||
Expand Down

0 comments on commit 499e847

Please sign in to comment.