Skip to content

Commit 14b6c9c

Browse files
authored
chore(s3-deployment): fix double import (#19124)
---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent ea2b47e commit 14b6c9c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/@aws-cdk/aws-s3-deployment/lib/bucket-deployment.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ import { kebab as toKebabCase } from 'case';
1212
import { Construct } from 'constructs';
1313
import { ISource, SourceConfig } from './source';
1414

15-
// keep this import separate from other imports to reduce chance for merge conflicts with v2-main
16-
// eslint-disable-next-line no-duplicate-imports, import/order
17-
import { Token } from '@aws-cdk/core';
18-
1915
// keep this import separate from other imports to reduce chance for merge conflicts with v2-main
2016
// eslint-disable-next-line no-duplicate-imports, import/order
2117
import { Construct as CoreConstruct } from '@aws-cdk/core';
@@ -426,7 +422,7 @@ export class BucketDeployment extends CoreConstruct {
426422
*/
427423
public get deployedBucket(): s3.IBucket {
428424
this.requestDestinationArn = true;
429-
this._deployedBucket = this._deployedBucket ?? s3.Bucket.fromBucketArn(this, 'DestinationBucket', Token.asString(this.cr.getAtt('DestinationBucketArn')));
425+
this._deployedBucket = this._deployedBucket ?? s3.Bucket.fromBucketArn(this, 'DestinationBucket', cdk.Token.asString(this.cr.getAtt('DestinationBucketArn')));
430426
return this._deployedBucket;
431427
}
432428

0 commit comments

Comments
 (0)