Skip to content

Commit c3d86a6

Browse files
authored
fix(codegen): checkstyle issue in DocumentBareBonesClientGenerator (#6455)
1 parent 75e1ab8 commit c3d86a6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentBareBonesClientGenerator.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ private void generateClientConstructor() {
186186
writer.write("""
187187
if (this.config?.cacheMiddleware) {
188188
throw new Error(
189-
"@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the DynamoDBDocument client. This option must be set to false."
189+
"@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the"
190+
+ " DynamoDBDocumentClient. This option must be set to false."
190191
);
191192
}
192193
""");

Diff for: lib/lib-dynamodb/src/DynamoDBDocumentClient.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ export class DynamoDBDocumentClient extends __Client<
146146
this.middlewareStack = client.middlewareStack;
147147
if (this.config?.cacheMiddleware) {
148148
throw new Error(
149-
"@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the DynamoDBDocument client. This option must be set to false."
149+
"@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the" +
150+
" DynamoDBDocumentClient. This option must be set to false."
150151
);
151152
}
152153
}

0 commit comments

Comments
 (0)