Skip to content

Commit

Permalink
refactor(hcl2cdk): clarity comment
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMSchmidt committed Jul 26, 2021
1 parent 60a7f8b commit 8916cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@cdktf/hcl2cdk/lib/expressions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export function constructAst(type: string, isModuleImport: boolean) {
if (parts[0] === "data") {
return t.memberExpression(
t.identifier(parts[1]), // e.g. aws
t.identifier(pascalCase(`data_${parts[1]}_${parts[2]}`)) // e.g. NatGateway
t.identifier(pascalCase(`data_${parts[1]}_${parts[2]}`)) // e.g. DataAwsNatGateway
);
}
return t.memberExpression(
Expand Down

0 comments on commit 8916cfc

Please sign in to comment.