Skip to content

Commit 05a8d34

Browse files
committed
chore(codegen): use block for loaderConfig
1 parent 33db766 commit 05a8d34

File tree

1 file changed

+4
-1
lines changed
  • codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen

1 file changed

+4
-1
lines changed

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,10 @@ public void prepareCustomizations(
166166
writer.write("awsCheckVersion(process.version);");
167167
}
168168
if (target.equals(LanguageTarget.NODE)) {
169-
writer.write("const loaderConfig = { profile: config?.profile, logger: clientSharedValues.logger };");
169+
writer.openBlock("const loaderConfig = {", "};", () -> {
170+
writer.write("profile: config?.profile,");
171+
writer.write("logger: clientSharedValues.logger,");
172+
});
170173
}
171174
}
172175

0 commit comments

Comments
 (0)