From a1ccdccf7ee8922076e0699cb4b934d69414fbf5 Mon Sep 17 00:00:00 2001 From: Sven Kirschbaum Date: Tue, 3 Aug 2021 00:32:09 +0200 Subject: [PATCH] Removed duplicate import --- packages/@aws-cdk/aws-s3-deployment/lib/bucket-deployment.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/@aws-cdk/aws-s3-deployment/lib/bucket-deployment.ts b/packages/@aws-cdk/aws-s3-deployment/lib/bucket-deployment.ts index 3d0c083b05f64..990a1ec359d0b 100644 --- a/packages/@aws-cdk/aws-s3-deployment/lib/bucket-deployment.ts +++ b/packages/@aws-cdk/aws-s3-deployment/lib/bucket-deployment.ts @@ -5,7 +5,6 @@ import * as iam from '@aws-cdk/aws-iam'; import * as lambda from '@aws-cdk/aws-lambda'; import * as s3 from '@aws-cdk/aws-s3'; import * as cdk from '@aws-cdk/core'; -import { Token } from '@aws-cdk/core'; import { AwsCliLayer } from '@aws-cdk/lambda-layer-awscli'; import { kebab as toKebabCase } from 'case'; import { Construct } from 'constructs'; @@ -201,8 +200,8 @@ export class BucketDeployment extends CoreConstruct { if (!props.distribution) { throw new Error('Distribution must be specified if distribution paths are specified'); } - if (!Token.isUnresolved(props.distributionPaths)) { - if (!props.distributionPaths.every(distributionPath => Token.isUnresolved(distributionPath) || distributionPath.startsWith('/'))) { + if (!cdk.Token.isUnresolved(props.distributionPaths)) { + if (!props.distributionPaths.every(distributionPath => cdk.Token.isUnresolved(distributionPath) || distributionPath.startsWith('/'))) { throw new Error('Distribution paths must start with "/"'); } }