Skip to content

Commit f802fa5

Browse files
authored
Remove extra unused parameter from new call (#1418)
* Remove extra unused parameter from new call * Fix prettier
1 parent f51fc09 commit f802fa5

File tree

1 file changed

+1
-6
lines changed
  • src/transformation/visitors/class

1 file changed

+1
-6
lines changed

src/transformation/visitors/class/new.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@ export const transformNewExpression: FunctionVisitor<ts.NewExpression> = (node,
1313
}
1414

1515
const signature = context.checker.getResolvedSignature(node);
16-
const [name, params] = transformCallAndArguments(
17-
context,
18-
node.expression,
19-
node.arguments ?? [ts.factory.createTrue()],
20-
signature
21-
);
16+
const [name, params] = transformCallAndArguments(context, node.expression, node.arguments ?? [], signature);
2217

2318
const type = context.checker.getTypeAtLocation(node);
2419
const annotations = getTypeAnnotations(type);

0 commit comments

Comments
 (0)