Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(codegen): checkstyle issue in DocumentBareBonesClientGenerator #6455

Merged
merged 2 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ private void generateClientConstructor() {
writer.write("""
if (this.config?.cacheMiddleware) {
throw new Error(
"@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the DynamoDBDocument client. This option must be set to false."
"@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the"
+ " DynamoDBDocumentClient. This option must be set to false."
);
}
""");
Expand Down
3 changes: 2 additions & 1 deletion lib/lib-dynamodb/src/DynamoDBDocumentClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ export class DynamoDBDocumentClient extends __Client<
this.middlewareStack = client.middlewareStack;
if (this.config?.cacheMiddleware) {
throw new Error(
"@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the DynamoDBDocument client. This option must be set to false."
"@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the" +
" DynamoDBDocumentClient. This option must be set to false."
);
}
}
Expand Down
Loading