Skip to content

Commit 7361092

Browse files
committed
fix yarn format check
1 parent a9d685d commit 7361092

File tree

1 file changed

+4
-9
lines changed
  • lambdas/functions/control-plane/src/scale-runners

1 file changed

+4
-9
lines changed

lambdas/functions/control-plane/src/scale-runners/scale-up.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,8 @@ export async function scaleUp(eventSource: string, payload: ActionRequestMessage
255255
const onDemandFailoverOnError = process.env.ENABLE_ON_DEMAND_FAILOVER_FOR_ERRORS
256256
? (JSON.parse(process.env.ENABLE_ON_DEMAND_FAILOVER_FOR_ERRORS) as [string])
257257
: [];
258-
const ssmParameterStoreTags: { Key: string; Value: string }[] = process.env.SSM_PARAMETER_STORE_TAGS && process.env.SSM_PARAMETER_STORE_TAGS.trim() !== ''
258+
const ssmParameterStoreTags: { Key: string; Value: string }[] =
259+
process.env.SSM_PARAMETER_STORE_TAGS && process.env.SSM_PARAMETER_STORE_TAGS.trim() !== ''
259260
? JSON.parse(process.env.SSM_PARAMETER_STORE_TAGS)
260261
: [];
261262

@@ -415,10 +416,7 @@ async function createRegistrationTokenConfig(
415416

416417
for (const instance of instances) {
417418
await putParameter(`${githubRunnerConfig.ssmTokenPath}/${instance}`, runnerServiceConfig.join(' '), true, {
418-
tags: [
419-
{ Key: 'InstanceId', Value: instance },
420-
...githubRunnerConfig.ssmParameterStoreTags
421-
],
419+
tags: [{ Key: 'InstanceId', Value: instance }, ...githubRunnerConfig.ssmParameterStoreTags],
422420
});
423421
if (isDelay) {
424422
// Delay to prevent AWS ssm rate limits by being within the max throughput limit
@@ -476,10 +474,7 @@ async function createJitConfig(githubRunnerConfig: CreateGitHubRunnerConfig, ins
476474
instance: instance,
477475
});
478476
await putParameter(`${githubRunnerConfig.ssmTokenPath}/${instance}`, runnerConfig.data.encoded_jit_config, true, {
479-
tags: [
480-
{ Key: 'InstanceId', Value: instance },
481-
...githubRunnerConfig.ssmParameterStoreTags
482-
],
477+
tags: [{ Key: 'InstanceId', Value: instance }, ...githubRunnerConfig.ssmParameterStoreTags],
483478
});
484479
if (isDelay) {
485480
// Delay to prevent AWS ssm rate limits by being within the max throughput limit

0 commit comments

Comments
 (0)