Skip to content

Commit 3efb715

Browse files
committed
PR feedback
1 parent a726260 commit 3efb715

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/model/cloud-runner/providers/aws/services/task-service.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import {
44
ListStacksCommand,
55
} from '@aws-sdk/client-cloudformation';
66
import type { StackSummary } from '@aws-sdk/client-cloudformation';
7-
import {
8-
DescribeLogGroupsCommand,
9-
DescribeLogGroupsCommandInput,
10-
} from '@aws-sdk/client-cloudwatch-logs';
7+
import { DescribeLogGroupsCommand, DescribeLogGroupsCommandInput } from '@aws-sdk/client-cloudwatch-logs';
118
import type { LogGroup } from '@aws-sdk/client-cloudwatch-logs';
129
import { DescribeTasksCommand, ListClustersCommand, ListTasksCommand } from '@aws-sdk/client-ecs';
1310
import type { Task } from '@aws-sdk/client-ecs';
@@ -104,9 +101,7 @@ export class TaskService {
104101
{
105102
let nextToken: string | undefined;
106103
do {
107-
const taskResponse = await ecs.send(
108-
new ListTasksCommand({ cluster: element, nextToken }),
109-
);
104+
const taskResponse = await ecs.send(new ListTasksCommand({ cluster: element, nextToken }));
110105
taskArns.push(...(taskResponse.taskArns ?? []));
111106
nextToken = taskResponse.nextToken;
112107
} while (nextToken);
@@ -206,7 +201,9 @@ export class TaskService {
206201
public static async getLocks(): Promise<Array<{ Key: string }>> {
207202
process.env.AWS_REGION = Input.region;
208203
if (CloudRunner.buildParameters.storageProvider === 'rclone') {
209-
const objects = await (SharedWorkspaceLocking as unknown as { listObjects(prefix: string): Promise<string[]> }).listObjects('');
204+
const objects = await (
205+
SharedWorkspaceLocking as unknown as { listObjects(prefix: string): Promise<string[]> }
206+
).listObjects('');
210207
return objects.map((x: string) => ({ Key: x }));
211208
}
212209
const s3 = AwsClientFactory.getS3();

0 commit comments

Comments
 (0)