Skip to content

Commit 02ee728

Browse files
committed
fix: fix lint error
1 parent 118e529 commit 02ee728

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

packages/cdk-blue-green-container-deployment/src/ecs-deployment-group.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
import * as path from 'path';
2-
import { EcsApplication, IEcsDeploymentGroup, IEcsApplication, IEcsDeploymentConfig, EcsDeploymentConfig, CfnDeploymentConfigProps } from '@aws-cdk/aws-codedeploy';
2+
import {
3+
EcsApplication,
4+
IEcsDeploymentGroup,
5+
IEcsApplication,
6+
IEcsDeploymentConfig,
7+
EcsDeploymentConfig,
8+
CfnDeploymentConfigProps,
9+
} from '@aws-cdk/aws-codedeploy';
310
import { Role, ServicePrincipal, ManagedPolicy, Effect } from '@aws-cdk/aws-iam';
411
import { Aws, Construct, Resource, CustomResource, CustomResourceProvider, CustomResourceProviderRuntime } from '@aws-cdk/core';
512

packages/cdk-blue-green-container-deployment/src/lambdas/ecs-deployment-group/index.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface EcsDeploymentGroupProps {
2727
terminationWaitTimeInMinutes: number;
2828
autoRollbackOnEvents?: RollbackEvent[];
2929
existsDeploymentConfigName?: string;
30-
createDeploymentConfigInput?: CodeDeploy.CreateDeploymentConfigInput
30+
createDeploymentConfigInput?: CodeDeploy.CreateDeploymentConfigInput;
3131
}
3232

3333
const codeDeploy = new CodeDeploy();
@@ -67,9 +67,7 @@ const onCreate = async (event: CloudFormationCustomResourceCreateEvent): Promise
6767
} = getProperties(event.ResourceProperties);
6868

6969
if (!existsDeploymentConfigName && createDeploymentConfigInput) {
70-
await codeDeploy
71-
.createDeploymentConfig(createDeploymentConfigInput)
72-
.promise();
70+
await codeDeploy.createDeploymentConfig(createDeploymentConfigInput).promise();
7371
}
7472

7573
await codeDeploy
@@ -177,11 +175,11 @@ const onDelete = async (event: CloudFormationCustomResourceDeleteEvent): Promise
177175

178176
if (!existsDeploymentConfigName && createDeploymentConfigInput) {
179177
await codeDeploy
180-
.deleteDeploymentConfig({
181-
deploymentConfigName: createDeploymentConfigInput?.deploymentConfigName
182-
})
183-
.promise();
184-
}
178+
.deleteDeploymentConfig({
179+
deploymentConfigName: createDeploymentConfigInput?.deploymentConfigName,
180+
})
181+
.promise();
182+
}
185183
};
186184

187185
export const handler = async (event: CloudFormationCustomResourceEvent): Promise<HandlerReturn | void> => {

0 commit comments

Comments
 (0)