From 232ec412a2801d670759e26ec6d8694e08f696f6 Mon Sep 17 00:00:00 2001 From: Shuto Yukawa Date: Thu, 26 Mar 2026 13:56:47 +0900 Subject: [PATCH] chore: fix duplicate word typos in documentation comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix repeated words in JSDoc comments and code comments across multiple packages: - "the the" → "the" (6 occurrences) - "of of" → "of" - "be be" → "be" - "is is" → "is" - "to to" → "to" --- packages/aws-cdk-lib/aws-appsync/lib/key.ts | 2 +- packages/aws-cdk-lib/aws-dynamodb/lib/table.ts | 2 +- packages/aws-cdk-lib/aws-ec2/lib/vpc.ts | 2 +- packages/aws-cdk-lib/aws-ecr-assets/lib/tarball-asset.ts | 2 +- .../aws-cdk-lib/aws-elasticloadbalancing/lib/load-balancer.ts | 2 +- packages/aws-cdk-lib/aws-events-targets/lib/log-group.ts | 2 +- .../aws-s3/lib/notifications-resource/notifications-resource.ts | 2 +- packages/aws-cdk-lib/core/lib/duration.ts | 2 +- packages/aws-cdk-lib/core/lib/private/asset-staging.ts | 2 +- packages/aws-cdk-lib/core/lib/stage.ts | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/aws-cdk-lib/aws-appsync/lib/key.ts b/packages/aws-cdk-lib/aws-appsync/lib/key.ts index bad74a6e37c57..bc56249f92b8e 100644 --- a/packages/aws-cdk-lib/aws-appsync/lib/key.ts +++ b/packages/aws-cdk-lib/aws-appsync/lib/key.ts @@ -27,7 +27,7 @@ export class KeyCondition { } /** - * Condition k > arg, true if the key attribute k is greater than the the Query argument + * Condition k > arg, true if the key attribute k is greater than the Query argument */ public static gt(keyName: string, arg: string): KeyCondition { return new KeyCondition(new BinaryCondition(keyName, '>', arg)); diff --git a/packages/aws-cdk-lib/aws-dynamodb/lib/table.ts b/packages/aws-cdk-lib/aws-dynamodb/lib/table.ts index dd7b561564f48..b3473859a5cfc 100644 --- a/packages/aws-cdk-lib/aws-dynamodb/lib/table.ts +++ b/packages/aws-cdk-lib/aws-dynamodb/lib/table.ts @@ -116,7 +116,7 @@ export interface CsvOptions { * List of the headers used to specify a common header for all source CSV files being imported. * * **NOTE**: If this field is specified then the first line of each CSV file is treated as data instead of the header. - * If this field is not specified the the first line of each CSV file is treated as the header. + * If this field is not specified the first line of each CSV file is treated as the header. * * @default - the first line of the CSV file is treated as the header */ diff --git a/packages/aws-cdk-lib/aws-ec2/lib/vpc.ts b/packages/aws-cdk-lib/aws-ec2/lib/vpc.ts index ba2b9986a1e61..32951a4360eb9 100644 --- a/packages/aws-cdk-lib/aws-ec2/lib/vpc.ts +++ b/packages/aws-cdk-lib/aws-ec2/lib/vpc.ts @@ -2491,7 +2491,7 @@ export class PublicSubnet extends Subnet implements IPublicSubnet { /** * Creates a new managed NAT gateway attached to this public subnet. * Also adds the EIP for the managed NAT. - * @returns A ref to the the NAT Gateway ID + * @returns A ref to the NAT Gateway ID */ @MethodMetadata() public addNatGateway(eipAllocationId?: string) { diff --git a/packages/aws-cdk-lib/aws-ecr-assets/lib/tarball-asset.ts b/packages/aws-cdk-lib/aws-ecr-assets/lib/tarball-asset.ts index 1e0560a267f79..ae25673f5253b 100644 --- a/packages/aws-cdk-lib/aws-ecr-assets/lib/tarball-asset.ts +++ b/packages/aws-cdk-lib/aws-ecr-assets/lib/tarball-asset.ts @@ -20,7 +20,7 @@ export interface TarballImageAssetProps { /** * Absolute path to the tarball. * - * It is recommended to to use the script running directory (e.g. `__dirname` + * It is recommended to use the script running directory (e.g. `__dirname` * in Node.js projects or dirname of `__file__` in Python) if your tarball * is located as a resource inside your project. */ diff --git a/packages/aws-cdk-lib/aws-elasticloadbalancing/lib/load-balancer.ts b/packages/aws-cdk-lib/aws-elasticloadbalancing/lib/load-balancer.ts index 1234052f83af7..3dd95d037a274 100644 --- a/packages/aws-cdk-lib/aws-elasticloadbalancing/lib/load-balancer.ts +++ b/packages/aws-cdk-lib/aws-elasticloadbalancing/lib/load-balancer.ts @@ -244,7 +244,7 @@ export enum LoadBalancingProtocol { /** * A load balancer with a single listener * - * Routes to a fleet of of instances in a VPC. + * Routes to a fleet of instances in a VPC. */ @propertyInjectable export class LoadBalancer extends Resource implements ILoadBalancer, IConnectable { diff --git a/packages/aws-cdk-lib/aws-events-targets/lib/log-group.ts b/packages/aws-cdk-lib/aws-events-targets/lib/log-group.ts index cf1b1502285a8..8df58417b5c42 100644 --- a/packages/aws-cdk-lib/aws-events-targets/lib/log-group.ts +++ b/packages/aws-cdk-lib/aws-events-targets/lib/log-group.ts @@ -54,7 +54,7 @@ export abstract class LogGroupTargetInput { } /** - * Pass a JSON object to the the log group event target + * Pass a JSON object to the log group event target * * May contain strings returned by `EventField.from()` to substitute in parts of the * matched event. diff --git a/packages/aws-cdk-lib/aws-s3/lib/notifications-resource/notifications-resource.ts b/packages/aws-cdk-lib/aws-s3/lib/notifications-resource/notifications-resource.ts index fbf67843ed11e..60a6c2657b433 100644 --- a/packages/aws-cdk-lib/aws-s3/lib/notifications-resource/notifications-resource.ts +++ b/packages/aws-cdk-lib/aws-s3/lib/notifications-resource/notifications-resource.ts @@ -85,7 +85,7 @@ export class BucketNotifications extends Construct { resource.node.addDependency(...targetProps.dependencies); } - // based on the target type, add the the correct configurations array + // based on the target type, add the correct configurations array switch (targetProps.type) { case BucketNotificationDestinationType.LAMBDA: this.lambdaNotifications.push({ ...commonConfig, LambdaFunctionArn: targetProps.arn }); diff --git a/packages/aws-cdk-lib/core/lib/duration.ts b/packages/aws-cdk-lib/core/lib/duration.ts index e57049d04873a..70a5eaefafb16 100644 --- a/packages/aws-cdk-lib/core/lib/duration.ts +++ b/packages/aws-cdk-lib/core/lib/duration.ts @@ -232,7 +232,7 @@ export class Duration { /** * Returns a string representation of this `Duration` * - * This is is never the right function to use when you want to use the `Duration` + * This is never the right function to use when you want to use the `Duration` * object in a template. Use `toSeconds()`, `toMinutes()`, `toDays()`, etc. instead. */ public toString(): string { diff --git a/packages/aws-cdk-lib/core/lib/private/asset-staging.ts b/packages/aws-cdk-lib/core/lib/private/asset-staging.ts index 9a79ffdbfaec5..c87086647684e 100644 --- a/packages/aws-cdk-lib/core/lib/private/asset-staging.ts +++ b/packages/aws-cdk-lib/core/lib/private/asset-staging.ts @@ -159,7 +159,7 @@ export class AssetBundlingVolumeCopy extends AssetBundlingBase { } /** - * copy files from the the output volume to the host where this is executed + * copy files from the output volume to the host where this is executed * @param outputPath - path to folder where files should be copied to - without trailing slash */ private copyOutputTo(outputPath: string) { diff --git a/packages/aws-cdk-lib/core/lib/stage.ts b/packages/aws-cdk-lib/core/lib/stage.ts index 3a20c13d1c3d2..d56bb1c302e42 100644 --- a/packages/aws-cdk-lib/core/lib/stage.ts +++ b/packages/aws-cdk-lib/core/lib/stage.ts @@ -113,7 +113,7 @@ export interface StageProps { * application. * * You can then instantiate your subclass multiple times to model multiple - * copies of your application which should be be deployed to different + * copies of your application which should be deployed to different * environments. */ export class Stage extends Construct {