Minor code update

This commit is contained in:
Nicolò Ribaudo 2022-01-09 00:15:20 +01:00
parent b86c25a800
commit 0a99902cc0

View File

@ -553,11 +553,8 @@ function transformClass(
name = key.name; name = key.name;
} }
if ( if (element.isClassMethod({ kind: "constructor" })) {
element.node.type === "ClassMethod" && constructorPath = element;
element.node.kind === "constructor"
) {
constructorPath = element as NodePath<t.ClassMethod>;
} }
if (isComputed) { if (isComputed) {