From cbef804d2375ec9fee75b2cde08397c7bbbcb143 Mon Sep 17 00:00:00 2001 From: Clare Liguori Date: Fri, 18 Nov 2022 08:26:48 -0800 Subject: [PATCH] prettier fixes Signed-off-by: Clare Liguori --- plugins/techdocs-node/src/stages/publish/awsS3.test.ts | 8 +++++--- plugins/techdocs-node/src/stages/publish/awsS3.ts | 10 ++++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/plugins/techdocs-node/src/stages/publish/awsS3.test.ts b/plugins/techdocs-node/src/stages/publish/awsS3.test.ts index 90c8c9e9cc..de11ca0814 100644 --- a/plugins/techdocs-node/src/stages/publish/awsS3.test.ts +++ b/plugins/techdocs-node/src/stages/publish/awsS3.test.ts @@ -22,7 +22,7 @@ import { ListObjectsV2Command, PutObjectCommand, S3Client, - UploadPartCommand + UploadPartCommand, } from '@aws-sdk/client-s3'; import { getVoidLogger } from '@backstage/backend-common'; import { Entity, DEFAULT_NAMESPACE } from '@backstage/catalog-model'; @@ -474,7 +474,8 @@ describe('AwsS3Publish', () => { s3Mock.on(GetObjectCommand).callsFake(_ => { return { Body: new ErrorReadable('No stream!'), - }}); + }; + }); const publisher = createPublisherFromConfig(); @@ -612,7 +613,8 @@ describe('AwsS3Publish', () => { s3Mock.on(GetObjectCommand).callsFake(_ => { return { Body: new ErrorReadable('No stream!'), - }}); + }; + }); const response = await request(app).get( `/${entityTripletPath}/not-found.html`, diff --git a/plugins/techdocs-node/src/stages/publish/awsS3.ts b/plugins/techdocs-node/src/stages/publish/awsS3.ts index 0861f45aa1..7c2405cc1c 100644 --- a/plugins/techdocs-node/src/stages/publish/awsS3.ts +++ b/plugins/techdocs-node/src/stages/publish/awsS3.ts @@ -131,7 +131,10 @@ export class AwsS3Publish implements PublisherBase { const credentialsConfig = config.getOptionalConfig( 'techdocs.publisher.awsS3.credentials', ); - const credentials = AwsS3Publish.buildCredentials(credentialsConfig, region); + const credentials = AwsS3Publish.buildCredentials( + credentialsConfig, + region, + ); // AWS endpoint is an optional config. If missing, the default endpoint is built from // the configured region. @@ -180,7 +183,10 @@ export class AwsS3Publish implements PublisherBase { }; } - private static buildCredentials(config?: Config, region?: string): CredentialProvider { + private static buildCredentials( + config?: Config, + region?: string, + ): CredentialProvider { if (!config) { return fromNodeProviderChain(); }