Minor code update

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

View File

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