Skip to content

Commit

Permalink
fix(codegen): checkstyle issue in DocumentBareBonesClientGenerator (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored Sep 10, 2024
1 parent 75e1ab8 commit c3d86a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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

0 comments on commit c3d86a6

Please sign in to comment.