Skip to content

Commit

Permalink
Merge pull request #3 from adriencaccia/fix/optional-constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
adriencaccia authored Feb 1, 2023
2 parents 00e1485 + 2b32e72 commit 1bd111e
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 1bd111e

Please sign in to comment.