Skip to content

Commit

Permalink
fix: allow empty constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
adriencaccia committed Feb 1, 2023
1 parent 00e1485 commit 2b32e72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NodeJsFunctionBundleAnalyzerAspect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ interface NodeJsFunctionBundleAnalyzerAspectProps {
class NodeJsFunctionBundleAnalyzerAspect implements IAspect {
private customFunctionConstructName: string | undefined;

constructor({ customFunctionConstruct }: NodeJsFunctionBundleAnalyzerAspectProps) {
this.customFunctionConstructName = customFunctionConstruct?.prototype.constructor.name;
constructor(props?: NodeJsFunctionBundleAnalyzerAspectProps) {
this.customFunctionConstructName = props?.customFunctionConstruct?.prototype.constructor.name;
}

async visit(node: IConstruct): Promise<void> {
Expand Down

0 comments on commit 2b32e72

Please sign in to comment.