Skip to content

Commit

Permalink
fix(scope-manager): correct decorators(.length) check in ClassVisitor…
Browse files Browse the repository at this point in the history
… for methods
  • Loading branch information
JoshuaKGoldberg committed Jul 27, 2023
1 parent 593d37f commit 511b6f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/scope-manager/src/referencer/ClassVisitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class ClassVisitor extends Visitor {
if (
!withMethodDecorators &&
methodNode.kind === 'constructor' &&
this.#classNode.decorators
this.#classNode.decorators.length
) {
withMethodDecorators = true;
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 511b6f4

Please sign in to comment.